docs.unity3d.com
    Show / Hide Table of Contents

    Class SetPoseAction

    Sets the position of this GameObject to the position of the found real-world object.

    Inheritance
    Object
    TransformAction
    SetPoseAction
    Inherited Members
    TransformAction.Awake()
    TransformAction.OnDisable()
    TransformAction.ResetOnLoss
    TransformAction.OnMatchLoss(QueryResult)
    Namespace: Unity.MARS.Actions
    Syntax
    public class SetPoseAction : TransformAction, IMatchLossHandler, IMatchAcquireHandler, IMatchUpdateHandler, IAction, ISimulatable, IRequiresTraits

    Fields

    AlignWithWorldUp

    The axis that will be aligned to the world up direction. If set to None (default), the data's pose rotation will be used directly. If set to Y, the local Y axis will always be aligned with the world Up direction. If set to Z, the local Z axis will always be aligned with the world Up direction.

    Declaration
    public SetPoseAction.AlignMode AlignWithWorldUp
    Field Value
    Type Description
    SetPoseAction.AlignMode

    FollowMatchUpdates

    When enabled movement of the matched data, such as surface resizing, will be followed

    Declaration
    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
    IRequiresTraits.GetRequiredTraits()

    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
    IMatchAcquireHandler.OnMatchAcquire(QueryResult)

    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

    Implements
    IMatchUpdateHandler.OnMatchUpdate(QueryResult)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023