Class 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 |