Class Event
Assembly: UnityEngine.dll
Syntax
public sealed class Event
Constructors
|
Improve this Doc
View Source
Event()
Declaration
|
Improve this Doc
View Source
Event(Int32)
Declaration
public Event(int displayIndex)
Parameters
Type |
Name |
Description |
Int32 |
displayIndex |
|
|
Improve this Doc
View Source
Event(Event)
Declaration
public Event(Event other)
Parameters
Type |
Name |
Description |
Event |
other |
|
Properties
|
Improve this Doc
View Source
alt
Declaration
public bool alt { get; set; }
Property Value
Declaration
public int button { get; set; }
Property Value
|
Improve this Doc
View Source
capsLock
Declaration
public bool capsLock { get; set; }
Property Value
character
Declaration
public char character { get; set; }
Property Value
clickCount
Declaration
public int clickCount { get; set; }
Property Value
|
Improve this Doc
View Source
command
Declaration
public bool command { get; set; }
Property Value
commandName
Declaration
public string commandName { get; set; }
Property Value
|
Improve this Doc
View Source
control
Declaration
public bool control { get; set; }
Property Value
|
Improve this Doc
View Source
current
Declaration
public static Event current { get; set; }
Property Value
delta
Declaration
public Vector2 delta { get; set; }
Property Value
displayIndex
Declaration
public int displayIndex { get; set; }
Property Value
|
Improve this Doc
View Source
functionKey
Declaration
public bool functionKey { get; }
Property Value
|
Improve this Doc
View Source
isKey
Declaration
public bool isKey { get; }
Property Value
|
Improve this Doc
View Source
isMouse
Declaration
public bool isMouse { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public bool isScrollWheel { get; }
Property Value
keyCode
Declaration
public KeyCode keyCode { get; set; }
Property Value
modifiers
Declaration
public EventModifiers modifiers { get; set; }
Property Value
mousePosition
Declaration
public Vector2 mousePosition { get; set; }
Property Value
|
Improve this Doc
View Source
numeric
Declaration
public bool numeric { get; set; }
Property Value
pressure
Declaration
public float pressure { get; set; }
Property Value
rawType
Declaration
public EventType rawType { get; }
Property Value
|
Improve this Doc
View Source
shift
Declaration
public bool shift { get; set; }
Property Value
type
Declaration
public EventType type { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
Finalize()
Declaration
protected void Finalize()
GetEventCount()
Declaration
public static int GetEventCount()
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
GetTypeForControl(Int32)
Declaration
public EventType GetTypeForControl(int controlID)
Parameters
Type |
Name |
Description |
Int32 |
controlID |
|
Returns
|
Improve this Doc
View Source
KeyboardEvent(String)
Declaration
public static Event KeyboardEvent(string key)
Parameters
Type |
Name |
Description |
String |
key |
|
Returns
PopEvent(Event)
Declaration
public static bool PopEvent(Event outEvent)
Parameters
Type |
Name |
Description |
Event |
outEvent |
|
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Improve this Doc
View Source
Use()
Declaration
Extension Methods