docs.unity3d.com
    Show / Hide Table of Contents

    Namespace UnityEngine.XR.Interaction.Toolkit.Transformers

    Classes

    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. This is the default grab transformer used for multiple selections.

    XRLegacyGrabTransformer

    Grab transformer used when attachPointCompatibilityMode is set to Legacy. This is for backwards compatibility purpose for old projects. Marked for deprecation, this component will be removed in a future version.

    XRSingleGrabFreeTransformer

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

    Interfaces

    IXRGrabTransformer

    An interface that allows the target position, rotation, and scale of an XRGrabInteractable to be calculated. The Process(XRGrabInteractable, XRInteractionUpdateOrder.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

    XRBaseGrabTransformer.RegistrationMode

    Options for the register mode of the grab transformer.

    XRDualGrabFreeTransformer.PoseContributor

    Describes which combination of interactors influences a pose.

    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