Struct SplineInfo
SplineInfo is used to wrap a reference to the SplineContainer and index within that container to describe a Spline.
Inherited Members
Namespace: UnityEngine.Splines
Assembly: solution.dll
Syntax
[Serializable]
public struct SplineInfo : IEquatable<SplineInfo>, ISerializationCallbackReceiver
Constructors
Name | Description |
---|---|
SplineInfo(ISplineContainer, int) | Create a new SplineInfo object. |
Properties
Name | Description |
---|---|
Container | The ISplineContainer that contains the spline. |
Index | The index of the spline in the enumerable returned by the ISplineContainer. |
LocalToWorld | Matrix that transforms the Object from local space into world space. |
Object | If the referenced ISplineContainer is a UnityEngine.Object this field contains that object. |
Spline | A reference to the Spline. This may be null if the container or index are invalid. |
Transform | The associated Transform of the target. This may be null if the container is not a MonoBehaviour. |
Methods
Name | Description |
---|---|
Equals(object) | Compare against an object for equality. |
Equals(SplineInfo) | Compare against another SplineInfo for equality. |
GetHashCode() | Calculate a hash code for this info. |
OnAfterDeserialize() | Called after this object is deserialized by the Editor. |
OnBeforeSerialize() | Called before this object is serialized by the Editor. |