Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EventModifiers

Types of modifier key that can be active during an event.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
[Flags]public enum EventModifiers

Remarks

Note that there can be multiple modifiers active at once.
Additional Resources: Event, GUI Scripting Guide.

Fields

Value

Description

AltIs Alt/Option key held down?
CapsLockIs Caps Lock on?
CommandIs Command/Windows key held down?
ControlIs Control key held down?
FunctionKeyDetermines whether the current key press is a function key.
NoneNo modifier key pressed during a keystroke event.
NumericIs the current keypress on the numeric keyboard?
ShiftIs Shift held down?