docs.unity.cn
    Show / Hide Table of Contents

    Enum AxisControl.Clamp

    Clamping behavior for an axis control.

    Namespace: UnityEngine.InputSystem.Controls
    Syntax
    public enum Clamp

    Fields

    Name Description Value
    None

    Do not clamp values.


    0
    BeforeNormalize

    Clamp values to clampMin and clampMax before normalizing the value.


    1
    AfterNormalize

    Clamp values to clampMin and clampMax after normalizing the value.


    2
    ToConstantBeforeNormalize

    Clamp values any value below clampMin or above clampMax to clampConstant before normalizing the value.


    3
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Saturday, May 27, 2023