Class SetAlignedPoseAction
Syncs the GameObject's position with the real world object and aligns the long side to the X-axis.
Inherited Members
Namespace: Unity.MARS.Actions
Syntax
[HelpURL("https://docs.unity3d.com/Packages/com.unity.mars@1.5/manual/ReferenceGuideActions.html#set-aligned-pose-action-setalignedposeaction")]
[RequireComponent(typeof(Proxy))]
[ComponentTooltip("Syncs the GameObject's position with the real world object and aligns the long side to the X-axis.")]
[MonoBehaviourComponentMenu(typeof(SetAlignedPoseAction), "Action/Set Aligned Pose")]
public class SetAlignedPoseAction : TransformAction, IMatchLossHandler, IMatchAcquireHandler, IMatchUpdateHandler, IAction, ISimulatable, IRequiresTraits
Fields
FollowMatchUpdates
When enabled, movement of the matched data, such as surface-resizing, will be followed
Declaration
[SerializeField]
[Tooltip("When enabled, movement of the matched data, such as surface-resizing, will be followed")]
public bool FollowMatchUpdates
Field Value
Type | Description |
---|---|
Boolean |
Methods
GetRequiredTraits()
Get the TraitRequirements that are required by this object
Declaration
public TraitRequirement[] GetRequiredTraits()
Returns
Type | Description |
---|---|
TraitRequirement[] | The required traits |
Implements
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
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 |