Class EmbeddedSplineData
Wrapper for accessing a Spline
Inherited Members
Namespace: UnityEngine .Splines
Assembly: Unity.Splines.dll
Syntax
[Serializable]
public class EmbeddedSplineData
Constructors
EmbeddedSplineData()
Create a new Embedded
Declaration
public EmbeddedSplineData()
See Also
EmbeddedSplineData(string, EmbeddedSplineDataType, SplineContainer, int)
Create a new Embedded
Declaration
public EmbeddedSplineData(string key, EmbeddedSplineDataType type, SplineContainer container = null, int splineIndex = 0)
Parameters
Type | Name | Description |
---|---|---|
string | key | A unique string value used to identify and access a Spline |
Embedded |
type | The type of data stored by the Spline |
Spline |
container | The Spline |
int | splineIndex | The index of the Spline on the Spline |
See Also
Properties
Container
The Spline
Declaration
public SplineContainer Container { get; set; }
Property Value
Type | Description |
---|---|
Spline |
See Also
Key
A unique string value used to identify and access a Spline
Declaration
public string Key { get; set; }
Property Value
Type | Description |
---|---|
string |
See Also
SplineIndex
The index of the Spline on the Spline
Declaration
public int SplineIndex { get; set; }
Property Value
Type | Description |
---|---|
int |
See Also
Type
The type of data stored by the Spline
Declaration
public EmbeddedSplineDataType Type { get; set; }
Property Value
Type | Description |
---|---|
Embedded |
See Also
Methods
GetOrCreateFloat4Data()
Returns a Spline
Declaration
public SplineData<float4> GetOrCreateFloat4Data()
Returns
Type | Description |
---|---|
Spline |
A Spline |
Exceptions
Type | Condition |
---|---|
Invalid |
An exception is thrown if the requested Spline |
See Also
GetOrCreateFloatData()
Returns a Spline
Declaration
public SplineData<float> GetOrCreateFloatData()
Returns
Type | Description |
---|---|
Spline |
A Spline |
Exceptions
Type | Condition |
---|---|
Invalid |
An exception is thrown if the requested Spline |
See Also
GetOrCreateIntData()
Returns a Spline
Declaration
public SplineData<int> GetOrCreateIntData()
Returns
Type | Description |
---|---|
Spline |
A Spline |
Exceptions
Type | Condition |
---|---|
Invalid |
An exception is thrown if the requested Spline |
See Also
GetOrCreateObjectData()
Returns a Spline
Declaration
public SplineData<Object> GetOrCreateObjectData()
Returns
Type | Description |
---|---|
Spline |
A Spline |
Exceptions
Type | Condition |
---|---|
Invalid |
An exception is thrown if the requested Spline |
See Also
TryGetFloat4Data(out SplineData<float4>)
Attempt to get a reference to the Spline
Declaration
public bool TryGetFloat4Data(out SplineData<float4> data)
Parameters
Type | Name | Description |
---|---|---|
Spline |
data | A Spline |
Returns
Type | Description |
---|---|
bool | Returns true if a Spline |
Exceptions
Type | Condition |
---|---|
Invalid |
An exception is thrown if the requested Spline |
See Also
TryGetFloatData(out SplineData<float>)
Attempt to get a reference to the Spline
Declaration
public bool TryGetFloatData(out SplineData<float> data)
Parameters
Type | Name | Description |
---|---|---|
Spline |
data | A Spline |
Returns
Type | Description |
---|---|
bool | Returns true if a Spline |
Exceptions
Type | Condition |
---|---|
Invalid |
An exception is thrown if the requested Spline |
See Also
TryGetIntData(out SplineData<int>)
Attempt to get a reference to the Spline
Declaration
public bool TryGetIntData(out SplineData<int> data)
Parameters
Type | Name | Description |
---|---|---|
Spline |
data | A Spline |
Returns
Type | Description |
---|---|
bool | Returns true if a Spline |
Exceptions
Type | Condition |
---|---|
Invalid |
An exception is thrown if the requested Spline |
See Also
TryGetObjectData(out SplineData<Object>)
Attempt to get a reference to the Spline
Declaration
public bool TryGetObjectData(out SplineData<Object> data)
Parameters
Type | Name | Description |
---|---|---|
Spline |
data | A Spline |
Returns
Type | Description |
---|---|
bool | Returns true if a Spline |
Exceptions
Type | Condition |
---|---|
Invalid |
An exception is thrown if the requested Spline |
See Also
TryGetSpline(out Spline)
Attempt to get a reference to the Spline described by this object.
Declaration
public bool TryGetSpline(out Spline spline)
Parameters
Type | Name | Description |
---|---|---|
Spline | spline | A Spline if the Container and Spline |
Returns
Type | Description |
---|---|
bool | Returns true if the Container and Spline |