mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0releases/2.3.0releases/2.4.0releases/2.5.0releases/2.5.1releases/2.5.2releases/2.5.3

We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class BaseObjectCollection

    Inheritance
    Object
    BaseObjectCollection
    GridObjectCollection
    Namespace: Microsoft.MixedReality.Toolkit.Utilities
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class BaseObjectCollection : MonoBehaviour

    Properties

    IgnoreInactiveTransforms

    Whether to include space for inactive transforms in the layout

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

    NodeList

    List of objects with generated data on the object.

    Declaration
    protected List<ObjectCollectionNode> NodeList { get; }
    Property Value
    Type Description
    List<ObjectCollectionNode>

    OnCollectionUpdated

    Action called when collection is updated

    Declaration
    public Action<BaseObjectCollection> OnCollectionUpdated { get; set; }
    Property Value
    Type Description
    Action<BaseObjectCollection>

    SortType

    Type of sorting to use.

    Declaration
    public CollationOrder SortType { get; set; }
    Property Value
    Type Description
    CollationOrder

    Methods

    ContainsNode(Transform)

    Check if a node exists in the NodeList.

    Declaration
    protected bool ContainsNode(Transform node)
    Parameters
    Type Name Description
    Transform node

    The Transform belonging to the ObjectCollectionNode

    Returns
    Type Description
    Boolean

    true when node belongs to an element of the list.

    ContainsNode(Transform, out Int32)

    Check if a node exists in the NodeList.

    Declaration
    protected bool ContainsNode(Transform node, out int nodeIndex)
    Parameters
    Type Name Description
    Transform node

    The Transform belonging to ObjectCollectionNode

    Int32 nodeIndex

    The index of the element in NodeList

    Returns
    Type Description
    Boolean

    true when node belongs to an element of the list.

    LayoutChildren()

    Implement for laying out all children when UpdateCollection is called.

    Declaration
    protected abstract void LayoutChildren()

    PruneEmptyNodes()

    Checks for empty nodes and removes them

    Declaration
    protected void PruneEmptyNodes()

    SortNodes()

    Sorts NodeList based on SortType

    Declaration
    protected void SortNodes()

    UpdateCollection()

    Rebuilds / updates the collection layout. Update collection is called from the editor button on the inspector.

    Declaration
    public virtual void UpdateCollection()
    In This Article
    • Properties
      • IgnoreInactiveTransforms
      • NodeList
      • OnCollectionUpdated
      • SortType
    • Methods
      • ContainsNode(Transform)
      • ContainsNode(Transform, out Int32)
      • LayoutChildren()
      • PruneEmptyNodes()
      • SortNodes()
      • UpdateCollection()
    Back to top Generated by DocFX