docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Namespace UnityEngine.XR.Interaction.Toolkit.Transformers

    Classes

    ARTransformer

    Grab transformer which supports translation, rotation and scaling while respecting the AR environment. This transformer constrains the interactable to the ARPlane during translation.

    DropEventArgs

    Event data associated with the event when an XRGrabInteractable is dropped by all interactors.

    XRBaseGrabTransformer

    Abstract base class from which all grab transformer behaviors derive. Instances of this class can be assigned to an XRGrabInteractable using the Inspector by setting the Starting Single Grab Transformers (startingSingleGrabTransformers) and Starting Multiple Grab Transformers (startingMultipleGrabTransformers). This serves as a serializable reference instead of using the runtime list of grab transformers which is not serialized.

    XRDualGrabFreeTransformer

    Grab transformer which supports moving and rotating unconstrained with multiple Interactors. Maintains the offset from the attachment points used for each Interactor and points in the direction made by each grab.

    XRGeneralGrabTransformer

    Grab transformer which supports moving and rotating unconstrained with one or two interactors. Also allows clamped or unclamped scaling when using two interactors. Allows axis constraints on translation. This is the default grab transformer.

    XRSingleGrabFreeTransformer

    Grab transformer which supports moving and rotating unconstrained with a single Interactor. Maintains the offset from the attachment point used for that Interactor.

    XRSocketGrabTransformer

    Transformer used when an interactable is snapped to a socket. Applies both when select is active and when hover socket snapping is active.

    Interfaces

    IXRDropTransformer

    An interface that allows the target position, rotation, and scale of an XRGrabInteractable to be calculated. This interface adds the ability for the grab transformer to be notified when the interactable is dropped and to process once more.

    IXRGrabTransformer

    An interface that allows the target position, rotation, and scale of an XRGrabInteractable to be calculated. The Process(XRGrabInteractable, UpdatePhase, ref Pose, ref Vector3) method is responsible for calculating the pose that the interactable will move to and the scale it will be resized to. Implementers are only responsible for calculating the pose and scale, which is handled and applied by Unity in XRGrabInteractable.

    Enums

    ARTransformer.PlaneTranslationMode

    Represents the alignment of a plane where translation is allowed.

    XRBaseGrabTransformer.RegistrationMode

    Options for the register mode of the grab transformer.

    XRDualGrabFreeTransformer.PoseContributor

    Describes which combination of interactors influences a pose.

    XRGeneralGrabTransformer.ConstrainedAxisDisplacementMode

    Constrained Axis Displacement Mode

    XRGeneralGrabTransformer.ManipulationAxes

    Axis constraint enum.

    XRGeneralGrabTransformer.TwoHandedRotationMode

    Two handed rotation mode.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)