docs.unity.cn
    Show / Hide Table of Contents

    Enum XRGrabInteractable.AttachPointCompatibilityMode

    Controls the method used when calculating the target position of the object.

    Namespace: UnityEngine.XR.Interaction.Toolkit
    Syntax
    public enum AttachPointCompatibilityMode

    Fields

    Name Description Value
    Default

    Use the default, correct method for calculating the target position of the object.


    0
    Legacy

    Use an additional offset from the center of mass when calculating the target position of the object. Also incorporate the scale of the Interactor's Attach Transform. Marked for deprecation. This is the backwards compatible support mode for projects that accounted for the unintended difference when using XR Interaction Toolkit prior to version 1.0.0-pre.4. To have the effective attach position be the same between all XRBaseInteractable.MovementType values, use Default.


    1
    See Also
    attachPointCompatibilityMode
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, July 24, 2023