docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum ButtonWithTwoModifiers.ModifiersOrder

    Determines how a modifiers keys need to be pressed in order or not.

    Namespace: UnityEngine.InputSystem.Composites
    Assembly: Unity.InputSystem.dll
    Syntax
    public enum ButtonWithTwoModifiers.ModifiersOrder

    Fields

    Name Description
    Default

    By default, if the setting shortcutKeysConsumeInput is enabled, modifier1 and modifier2 are required to be in pressed state before or at the same time that button goes into pressed state for the composite as a whole to trigger. This means that binding to, for example, Ctrl+Shift+B, the ctrl and shift keys have to be pressed, in any order, before pressing the B key. This is the behavior usually expected with keyboard shortcuts.

    If the setting shortcutKeysConsumeInput is disabled, modifiers can be pressed after the button and the composite will still trigger.

    Ordered

    modifier1 and modifier2 are required to be in pressed state before or at the same time that button goes into pressed state for the composite as a whole to trigger. This means that binding to, for example, Ctrl+Shift+B, the ctrl and shift keys have to be pressed, in any order, before pressing the B key. This is the behavior usually expected with keyboard shortcuts.

    Unordered

    modifier1 and/or modifier2 can be pressed after button and the composite will still trigger. The only requirement is for all of them to concurrently be in pressed state.

    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)