Skip to main content

Enum KeyCodeTrigger.TriggerMode

Determines when the key trigger should be active. Values are flags and can be combined.

[Flags]
public enum KeyCodeTrigger.TriggerMode

Fields​

NameTypeDescription
EditorAndPlayer = -1Active both in the Unity Editor and in builds/runtime.
EditorOnly = 1Only active in the Unity Editor (not in builds).
Off = 0The trigger is completely disabled.
PlayerOnly = 2Only active in builds/runtime (not in the Unity Editor).