Class ShowChildrenOnTrackingAction | MARS | 1.0.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class ShowChildrenOnTrackingAction

    Inheritance
    Object
    ShowChildrenOnTrackingAction
    Namespace: Unity.MARS
    Syntax
    [ComponentTooltip("Activates children if the parent Real World Object is tracked; disables children otherwise.")]
    [MonoBehaviourComponentMenu(typeof(ShowChildrenOnTrackingAction), "Action/Show Objects on Tracking")]
    public class ShowChildrenOnTrackingAction : MonoBehaviour, IMatchVisibilityHandler, IAction, ISimulatable

    Explicit Interface Implementations

    IMatchVisibilityHandler.FilterVisibleObjects(QueryState, QueryResult, List<GameObject>, List<GameObject>)

    Shows and hides child objects based on a parent's tracking of AR Data

    Declaration
    void IMatchVisibilityHandler.FilterVisibleObjects(QueryState newState, QueryResult queryResult, List<GameObject> objectsToActivate, List<GameObject> objectsToDeactivate)
    Parameters
    Type Name Description
    QueryState newState

    The current state of the parent object

    QueryResult queryResult

    Query data associated with the state change

    List<GameObject> objectsToActivate

    A list containing objects that should be activated

    List<GameObject> objectsToDeactivate

    A list containing objects which should be set to inactive

    Implements
    IMatchVisibilityHandler.FilterVisibleObjects(QueryState, QueryResult, List<GameObject>, List<GameObject>)
    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