Show / Hide Table of Contents

Class Event

Inheritance
Object
Event
Inherited Members
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public sealed class Event

Constructors

| Improve this Doc View Source

Event()

Declaration
public Event()
| 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
Type Description
Boolean

button

Declaration
public int button { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

capsLock

Declaration
public bool capsLock { get; set; }
Property Value
Type Description
Boolean

character

Declaration
public char character { get; set; }
Property Value
Type Description
Char

clickCount

Declaration
public int clickCount { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

command

Declaration
public bool command { get; set; }
Property Value
Type Description
Boolean

commandName

Declaration
public string commandName { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

control

Declaration
public bool control { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

current

Declaration
public static Event current { get; set; }
Property Value
Type Description
Event

delta

Declaration
public Vector2 delta { get; set; }
Property Value
Type Description
Vector2

displayIndex

Declaration
public int displayIndex { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

functionKey

Declaration
public bool functionKey { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

isKey

Declaration
public bool isKey { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

isMouse

Declaration
public bool isMouse { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

isScrollWheel

Declaration
public bool isScrollWheel { get; }
Property Value
Type Description
Boolean

keyCode

Declaration
public KeyCode keyCode { get; set; }
Property Value
Type Description
KeyCode

modifiers

Declaration
public EventModifiers modifiers { get; set; }
Property Value
Type Description
EventModifiers

mousePosition

Declaration
public Vector2 mousePosition { get; set; }
Property Value
Type Description
Vector2
| Improve this Doc View Source

numeric

Declaration
public bool numeric { get; set; }
Property Value
Type Description
Boolean

pressure

Declaration
public float pressure { get; set; }
Property Value
Type Description
Single

rawType

Declaration
public EventType rawType { get; }
Property Value
Type Description
EventType
| Improve this Doc View Source

shift

Declaration
public bool shift { get; set; }
Property Value
Type Description
Boolean

type

Declaration
public EventType type { get; set; }
Property Value
Type Description
EventType

Methods

| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
Object.Equals(Object)
| Improve this Doc View Source

Finalize()

Declaration
protected void Finalize()

GetEventCount()

Declaration
public static int GetEventCount()
Returns
Type Description
Int32
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Object.GetHashCode()

GetTypeForControl(Int32)

Declaration
public EventType GetTypeForControl(int controlID)
Parameters
Type Name Description
Int32 controlID
Returns
Type Description
EventType
| Improve this Doc View Source

KeyboardEvent(String)

Declaration
public static Event KeyboardEvent(string key)
Parameters
Type Name Description
String key
Returns
Type Description
Event

PopEvent(Event)

Declaration
public static bool PopEvent(Event outEvent)
Parameters
Type Name Description
Event outEvent
Returns
Type Description
Boolean
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()
| Improve this Doc View Source

Use()

Declaration
public void Use()

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX