Method GetOrCreateFloatData
GetOrCreateFloatData()
Returns a SplineData<T> for Key and Type. If an instance matching the key and type does not exist, a new entry is appended to the internal collection and returned. Note that this is a reference to the stored SplineData<T>, not a copy. Any modifications to this collection will affect the Spline data.
Declaration
public SplineData<float> GetOrCreateFloatData()
Returns
Type | Description |
---|---|
SplineData<float> | A SplineData<T> of the requested type. |
Exceptions
Type | Condition |
---|---|
InvalidCastException | An exception is thrown if the requested SplineData<T> does not match the EmbeddedSplineDataType. |