Class MatchAction
Inherited Members
Namespace: Unity.MARS.Actions
Syntax
[RequireComponent(typeof(Proxy))]
[MonoBehaviourComponentMenu(typeof(MatchAction), "Action/Match Action")]
[MovedFrom("Unity.MARS")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.mars@1.5/manual/ReferenceGuideActions.html#match-body-pose-action-matchbodyposeaction")]
public class MatchAction : MonoBehaviour, IMatchAcquireHandler, IMatchUpdateHandler, IMatchLossHandler, IMatchTimeoutHandler, IAction, ISimulatable
Methods
OnMatchAcquire(QueryResult)
Called when a query match has been found
Declaration
public void OnMatchAcquire(QueryResult queryResult)
Parameters
Type | Name | Description |
---|---|---|
QueryResult | queryResult | Data associated with this event |
Implements
OnMatchLoss(QueryResult)
Called when a query match has been lost
Declaration
public void OnMatchLoss(QueryResult queryResult)
Parameters
Type | Name | Description |
---|---|---|
QueryResult | queryResult | Data associated with this event |
Implements
OnMatchTimeout(QueryArgs)
Called when no query match has been found in time
Declaration
public void OnMatchTimeout(QueryArgs queryArgs)
Parameters
Type | Name | Description |
---|---|---|
QueryArgs | queryArgs | The original query associated with this object |
Implements
OnMatchUpdate(QueryResult)
Called when a query match's data has updated
Declaration
public void OnMatchUpdate(QueryResult queryResult)
Parameters
Type | Name | Description |
---|---|---|
QueryResult | queryResult | Data associated with this event |