docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum SocketScaleMode

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

    Namespace: UnityEngine.XR.Interaction.Toolkit.Interactors
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
    public enum SocketScaleMode

    Fields

    Name Description
    Fixed

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

    None

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

    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.

    See Also
    socketScaleMode
    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)