docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SplineInfo

    SplineInfo is used to wrap a reference to the SplineContainer and index within that container to describe a Spline.

    Implements
    IEquatable<SplineInfo>
    ISerializationCallbackReceiver
    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)