docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SplineSelection

    Provides methods to track the selection of spline elements, knots, and tangents. SplineTools and SplineHandles use SplineSelection to manage these elements.

    Inheritance
    object
    SplineSelection
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: UnityEditor.Splines
    Assembly: solution.dll
    Syntax
    public static class SplineSelection

    Properties

    Name Description
    Count

    The number of elements in the current selection.

    Methods

    Name Description
    AddRange<T>(IEnumerable<T>)

    Add a set of elements to the current selection.

    Add<T>(T)

    Adds an element to the current selection.

    Clear()

    Clears the current selection.

    Contains<T>(T)

    Checks if the selection contains a knot or a tangent.c'est

    GetActiveElement(IReadOnlyList<SplineInfo>)

    Gets the active element of the selection. The active element is generally the last one added to this selection.

    GetElements<T>(IReadOnlyList<SplineInfo>, ICollection<T>)

    Gets all the elements of the current selection, filtered by target splines. Elements are added to the given collection.

    GetElements<T>(SplineInfo, ICollection<T>)

    Gets all the elements of the current selection, from a single spline target. Elements are added to the given collection.

    HasAny<T>(IReadOnlyList<SplineInfo>)

    Checks if the current selection contains at least one element from the given targeted splines.

    IsActive<T>(T)

    Checks if an element is currently the active one in the selection.

    RemoveRange<T>(IReadOnlyList<T>)

    Remove a set of elements from the current selection.

    Remove<T>(T)

    Remove an element from the current selection.

    SetActive<T>(T)

    Sets the active element of the selection.

    Set<T>(T)

    Sets the selection to the element.

    Events

    Name Description
    changed

    Action that is called when the element selection changes.

    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)