Method GetOrCreateFloat4Data
GetOrCreateFloat4Data()
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<float4> GetOrCreateFloat4Data()
Returns
Type | Description |
---|---|
SplineData<float4> | 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. |