Class ShowChildrenOnTrackingAction
Inherited Members
Namespace: Unity.MARS.Actions
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.mars@1.5/manual/ReferenceGuideActions.html#show-objects-on-tracking-action-showchildrenontrackingaction")]
[DisallowMultipleComponent]
[ComponentTooltip("Activates children if the parent Real World Object is tracked; disables children otherwise.")]
[MonoBehaviourComponentMenu(typeof(ShowChildrenOnTrackingAction), "Action/Show Objects on Tracking")]
[MovedFrom("Unity.MARS")]
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 |