docs.unity3d.com
    Show / Hide Table of Contents

    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

    Inheritance
    Object
    TransformAction
    BuildSurfaceAction
    SetAlignedPoseAction
    SetPoseAction
    StretchToExtentsAction
    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

    Implements
    IMatchLossHandler.OnMatchLoss(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