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 : int
Fields
Name | Description | Value |
---|---|---|
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 This is the default. It makes sure that the devices that are used with the editor UI respect |
0 |
AllDevicesRespectGameViewFocus | When the game view does not have focus, all input is routed to the editor (and thus |
1 |
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. |
2 |