SpringDefinitionsBuilder Class

Summary

A utility for building FlexiMotion.SpringDefinitions.
Assembly
FlexiMotion.dll
Namespace
FlexiMotion
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["SpringDefinitionsBuilder"] class Type type-node

Syntax

public class SpringDefinitionsBuilder

Fields

Name Constant Value Summary
Details
The list which will set the FlexiMotion.SpringDefinitions.Details.
Radii
The list which will set the FlexiMotion.SpringDefinitions.Radii.
Transforms
The list which will set the FlexiMotion.SpringDefinitions.Transforms.

Properties

Name Value Summary
Count int
The number of springs.

Methods

Name Value Summary
Add(Transform, SpringDetails, float) void
Adds a spring at the end of the lists.
Build() SpringDefinitions
Creates a new FlexiMotion.SpringDefinitions with the contents of this builder.
Clear() void
Removes all springs.
Contains(Transform) bool
Does the FlexiMotion.SpringDefinitionsBuilder.Transforms list contain the `transform`?
IndexOf(Transform) int
Returns the index of the `transform` in the FlexiMotion.SpringDefinitionsBuilder.Transforms list.
Remove(Transform) bool
Removes the spring with the specified `transform` and returns true if it was present.
RemoveAt(int) void
Removes the spring at the specified `index`.

Extension Methods

Name Value Summary
LogTemp<SpringDefinitionsBuilder>(Object) T
Debug.Log(message, context) with an [System.ObsoleteAttribute] warning so you remember to remove any calls.
SafeGetHashCode<SpringDefinitionsBuilder>() int
Uses System.Collections.Generic.EqualityComparer`1.Default to get a hash code.