Interface IMatchVisibilityHandler
Defines an action that controls the visible/enabled state of objects
Namespace: Unity.MARS
Syntax
public interface IMatchVisibilityHandler : IAction, ISimulatable
Methods
FilterVisibleObjects(QueryState, QueryResult, List<GameObject>, List<GameObject>)
Called when an object should decide whether or not objects it is associated with should be visible
Declaration
void FilterVisibleObjects(QueryState newState, QueryResult queryResult, List<GameObject> objectsToActivate, List<GameObject> objectsToDeactivate)
Parameters
Type | Name | Description |
---|---|---|
QueryState | newState | The tracking state this object is switching to |
QueryResult | queryResult | Data associated with this event |
List<GameObject> | objectsToActivate | List that stores which objects this handler wants to enable |
List<GameObject> | objectsToDeactivate | List that stores which objects this handler wants to disable |