docs.unity.cn
    Show / Hide Table of Contents

    Interface ISplineContainer

    An interface that represents ISplineContainer on a MonoBehaviour to enable Spline tools in the Editor.

    Namespace: UnityEngine.Splines
    Syntax
    public interface ISplineContainer

    Properties

    KnotLinkCollection

    A collection of KnotLinks to maintain valid links between knots.

    Declaration
    KnotLinkCollection KnotLinkCollection { get; }
    Property Value
    Type Description
    KnotLinkCollection

    Splines

    A collection of splines contained in this MonoBehaviour.

    Declaration
    IReadOnlyList<Spline> Splines { get; set; }
    Property Value
    Type Description
    IReadOnlyList<Spline>

    Extension Methods

    SplineUtility.AddSpline<T>(T)
    SplineUtility.AddSpline<T>(T, Spline)
    SplineUtility.RemoveSplineAt<T>(T, Int32)
    SplineUtility.RemoveSpline<T>(T, Spline)
    SplineUtility.ReorderSpline<T>(T, Int32, Int32)
    SplineUtility.SetLinkedKnotPosition<T>(T, SplineKnotIndex)
    SplineUtility.LinkKnots<T>(T, SplineKnotIndex, SplineKnotIndex)
    SplineUtility.UnlinkKnots<T>(T, IReadOnlyList<SplineKnotIndex>)
    SplineUtility.CopyKnotLinks<T>(T, Int32, Int32)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, April 27, 2023