docs.unity.cn
    Show / Hide Table of Contents

    Enum SocketScaleMode

    Enum used to determine how the socket should scale the interactable.

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

    Fields

    Name Description Value
    None

    The interactable will not be scaled when attached to the socket.


    0
    Fixed

    The interactable will be scaled to a fixed size when attached to the socket. The actual size is defined by the fixedScale value.


    1
    StretchedToFitSize

    The interactable will be scaled to fit the size of the socket when attached. The scaling is dynamic, computed using the interactable's bounds, with a target size defined by targetBoundsSize.


    2
    See Also
    socketScaleMode
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Tuesday, August 22, 2023