Class SelectionGroupList | Selection Groups | 0.1.0-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class SelectionGroupList

    A serializable list of SelectionGroups.

    Inheritance
    Object
    SelectionGroupList
    Namespace: Unity.SelectionGroups
    Syntax
    [Serializable]
    public class SelectionGroupList : ISerializationCallbackReceiver, IList<SelectionGroup>, ICollection<SelectionGroup>, IEnumerable<SelectionGroup>, IEnumerable

    Properties

    Count

    The number of instances in this list.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    Int32

    IsReadOnly

    Is this list readonly? Always false.

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    Boolean

    Item[Int32]

    Fetch a selectiongroup by group id.

    Declaration
    public SelectionGroup this[int index] { get; set; }
    Parameters
    Type Name Description
    Int32 index
    Property Value
    Type Description
    SelectionGroup

    Methods

    Add(SelectionGroup)

    Add a selection group to this list.

    Declaration
    public void Add(SelectionGroup group)
    Parameters
    Type Name Description
    SelectionGroup group

    Clear()

    Clear this list.

    Declaration
    public void Clear()

    Contains(SelectionGroup)

    Checks if this list contains a selection group.

    Declaration
    public bool Contains(SelectionGroup item)
    Parameters
    Type Name Description
    SelectionGroup item
    Returns
    Type Description
    Boolean

    True if found, otherwise false.

    CopyTo(SelectionGroup[], Int32)

    Copies this list into an array.

    Declaration
    public void CopyTo(SelectionGroup[] array, int arrayIndex)
    Parameters
    Type Name Description
    SelectionGroup[] array
    Int32 arrayIndex

    GetEnumerator()

    Enumerate through all groups in this list.

    Declaration
    public IEnumerator<SelectionGroup> GetEnumerator()
    Returns
    Type Description
    IEnumerator<SelectionGroup>

    IndexOf(SelectionGroup)

    Fetch index of a selection group in this list.

    Declaration
    public int IndexOf(SelectionGroup item)
    Parameters
    Type Name Description
    SelectionGroup item
    Returns
    Type Description
    Int32

    Insert(Int32, SelectionGroup)

    Inser a selection group at an index.

    Declaration
    public void Insert(int index, SelectionGroup item)
    Parameters
    Type Name Description
    Int32 index
    SelectionGroup item

    OnAfterDeserialize()

    The deserialization method for this instance.

    Declaration
    public void OnAfterDeserialize()
    Implements
    ISerializationCallbackReceiver.OnAfterDeserialize()

    OnBeforeSerialize()

    The serialization method for this instance.

    Declaration
    public void OnBeforeSerialize()
    Implements
    ISerializationCallbackReceiver.OnBeforeSerialize()

    Remove(SelectionGroup)

    Remove a selection group from this list.

    Declaration
    public bool Remove(SelectionGroup group)
    Parameters
    Type Name Description
    SelectionGroup group
    Returns
    Type Description
    Boolean

    True if the group was found, otherwise false.

    RemoveAt(Int32)

    Remove selection group at an index.

    Declaration
    public void RemoveAt(int index)
    Parameters
    Type Name Description
    Int32 index
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023