docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SplineIndexPopup

    SplineIndexPopup<T>(string, int, T)

    Creates a dropdown to select a spline index relative to .

    Declaration
    public static int SplineIndexPopup<T>(string label, int index, T container) where T : ISplineContainer
    Parameters
    Type Name Description
    string label

    An optional prefix label.

    int index

    The current index.

    T container

    A SplineContainer that determines how many splines are available in the popup selector.

    Returns
    Type Description
    int

    The selected index.

    Type Parameters
    Name Description
    T

    The type of ISplineContainer.

    SplineIndexPopup(string, int, int)

    Creates a dropdown to select an index between 0 and .

    Declaration
    public static int SplineIndexPopup(string label, int index, int splineCount)
    Parameters
    Type Name Description
    string label

    An optional prefix label.

    int index

    The current index.

    int splineCount

    The number of splines available. In most cases, this is the size of Splines

    Returns
    Type Description
    int

    The selected index.

    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)