docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CopySplineDataIfEmpty

    CopySplineDataIfEmpty(ISplineContainer, int, int, EmbeddedSplineDataType, string)

    Copy an embedded SplineData<T> collection to a new Spline if the destination does not already contain an entry matching the type and key.

    Declaration
    public static bool CopySplineDataIfEmpty(ISplineContainer container, int source, int destination, EmbeddedSplineDataType type, string key)
    Parameters
    Type Name Description
    ISplineContainer container
    int source

    The index of the Spline in the container to copy data from.

    int destination

    The index of the Spline in the container to copy data to.

    EmbeddedSplineDataType type

    The EmbeddedSplineDataType.

    string key

    A string value used to identify and access a SplineData<T>.

    Returns
    Type Description
    bool

    True if data was copied, otherwise false.

    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)