Method GetOrCreateObjectData
GetOrCreateObjectData(string)
Returns a SplineData<T> for key
. 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<Object> GetOrCreateObjectData(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key | The string key value to search for. Only one instance of a key value can exist in an embedded SplineData<T> collection, however keys are unique to each data type. The same key can be re-used to store float data and Object data. |
Returns
Type | Description |
---|---|
SplineData<Object> | A SplineData<T> of the requested type. |