Class ShowChildrenInBoundsAction
Namespace: Unity.MARS
Syntax
[ComponentTooltip("Disables any children outside of the real-world object's bounds.")]
[MonoBehaviourComponentMenu(typeof(ShowChildrenInBoundsAction), "Action/Show Objects In Bounds")]
public class ShowChildrenInBoundsAction : MonoBehaviour, IMatchVisibilityHandler, IAction, ISimulatable, IUsesMARSTrackableData<MRPlane>, IUsesCameraOffset, IFunctionalitySubscriber<IProvidesCameraOffset>, IFunctionalitySubscriber, IRequiresTraits
Methods
GetRequiredTraits()
Declaration
public TraitRequirement[] GetRequiredTraits()
Returns
Type | Description |
---|---|
TraitRequirement[] |
Implements
Explicit Interface Implementations
IMatchVisibilityHandler.FilterVisibleObjects(QueryState, QueryResult, List<GameObject>, List<GameObject>)
Shows and hides child objects based on if they are inside the tracked AR data's bounds
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
IFunctionalitySubscriber<IProvidesCameraOffset>.provider
Declaration
IProvidesCameraOffset IFunctionalitySubscriber<IProvidesCameraOffset>.provider { get; set; }
Returns
Type | Description |
---|---|
IProvidesCameraOffset |