docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SplineIndexField

    SplineIndexField<T>(SerializedProperty, T)

    Creates a dropdown to select an index between 0 and the count of UnityEditor.Splines contained in the provided .

    Declaration
    public static void SplineIndexField<T>(SerializedProperty property, T container) where T : ISplineContainer
    Parameters
    Type Name Description
    SerializedProperty property

    A SerializedProperty that stores an integer value.

    T container

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

    Type Parameters
    Name Description
    T

    The type implementing ISplineContainer.

    Exceptions
    Type Condition
    ArgumentException

    An exception is thrown if is not an integer field.

    SplineIndexField(SerializedProperty, int)

    Creates a dropdown to select an index between 0 and .

    Declaration
    public static void SplineIndexField(SerializedProperty property, int splineCount)
    Parameters
    Type Name Description
    SerializedProperty property

    A SerializedProperty that stores an integer value.

    int splineCount

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

    Exceptions
    Type Condition
    ArgumentException

    An exception is thrown if is not an integer field.

    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)