Class TransformAction
Base for action classes that change an object's transform Serves just to keep users from putting more than one of these on at at ime
Namespace: Unity.MARS.Actions
Syntax
public abstract class TransformAction : MonoBehaviour, IMatchLossHandler, IAction, ISimulatable
Properties
ResetOnLoss
When enabled, the object's pose and scale will be reset if the data for it is lost
Declaration
public bool ResetOnLoss { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Awake()
Awake is called when the script instance is being loaded.
Declaration
protected virtual void Awake()
OnDisable()
This function is called when the behaviour becomes disabled.
Declaration
protected virtual void OnDisable()
OnMatchLoss(QueryResult)
Called when a query match has been lost
Declaration
public virtual void OnMatchLoss(QueryResult queryResult)
Parameters
Type | Name | Description |
---|---|---|
QueryResult | queryResult | Data associated with this event |