docs.unity3d.com
    目次を表示する/隠す

    Enum InputSettings.EditorInputBehaviorInPlayMode

    Determines how player focus is handled with respect to input when we are in play mode in the editor. See editorInputBehaviorInPlayMode. The setting does not have an effect when the editor is not in play mode.

    Namespace: UnityEngine.InputSystem
    Syntax
    public enum EditorInputBehaviorInPlayMode

    Fields

    Name Description Value
    AllDeviceInputAlwaysGoesToGameView

    All input is going to the game at all times. This most closely aligns input behavior in the editor with that in players. backgroundBehavior will be respected as in the player and devices may thus be disabled in the runtime based on Game View focus.

    AllDevicesRespectGameViewFocus

    When the game view does not have focus, all input is routed to the editor (and thus EditorWindows). No input is received in the game regardless of the type of device generating it.

    PointersAndKeyboardsRespectGameViewFocus

    When the game view does not have focus, input from Pointer devices (such as Mouse and Touchscreen) is routed to the editor and not visible in player code. Input from devices such as Gamepads will continue to go to the game regardless of which EditorWindow is focused.

    This is the default. It makes sure that the devices that are used with the editor UI respect EditorWindow focus and thus do not lead to accidental inputs affecting the game. While at the same time letting all other input get through to the game. It does, however, mean that no other EditorWindow can tap input from these devices (such as Gamepads and UnityEngine.InputSystem.HIDs).

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)