Enum AxisControl.Clamp | Input System | 1.0.2
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 © 2020 Unity Technologies
    Generated by DocFX
    on 22 January 2021