Event list

Audio events

SoundFinished

Core events

BeginFrame

  • FrameNumber : unsigned
  • TimeStep : float

Update

  • TimeStep : float

PostUpdate

  • TimeStep : float

RenderUpdate

  • TimeStep : float

PostRenderUpdate

  • TimeStep : float

EndFrame

Database events

DbCursor

  • DbConnection : DbConnection pointer
  • ResultImpl : Underlying result object pointer (cannot be used in scripting)
  • SQL : String
  • NumCols : unsigned
  • ColValues : VariantVector
  • ColHeaders : StringVector
  • Filter : bool [in]
  • Abort : bool [in]

Drawable events

BoneHierarchyCreated

  • Node : Node pointer

AnimationTrigger

  • Node : Node pointer
  • Animation : Animation pointer
  • Name : String
  • Time : Float
  • Data : User-defined data type

AnimationFinished

ParticleEffectFinished

TerrainCreated

  • Node : Node pointer

Engine events

ConsoleCommand

Graphics events

ScreenMode

  • Width : int
  • Height : int
  • Fullscreen : bool
  • Borderless : bool
  • Resizable : bool
  • HighDPI : bool
  • Monitor : int
  • RefreshRate : int

WindowPos

  • X : int
  • Y : int

RenderSurfaceUpdate

BeginRendering

EndRendering

BeginViewUpdate

EndViewUpdate

BeginViewRender

ViewBuffersReady

ViewGlobalShaderParameters

EndViewRender

EndAllViewsRender

RenderPathEvent

DeviceLost

DeviceReset

IK events

IKEffectorTargetChanged

  • EffectorNode : (Node*) The effector node that has changed targets
  • TargetNode : (Node*) The new target node. NOTE: Can be NULL (means no target)

IO events

LogMessage

  • Message : String
  • Level : int

AsyncExecFinished

  • RequestID : unsigned
  • ExitCode : int

Input events

MouseButtonDown

  • Button : int
  • Buttons : int
  • Qualifiers : int

MouseButtonUp

  • Button : int
  • Buttons : int
  • Qualifiers : int

MouseMove

  • X : int (only when mouse visible)
  • Y : int (only when mouse visible)
  • DX : int
  • DY : int
  • Buttons : int
  • Qualifiers : int

MouseWheel

  • Wheel : int
  • Buttons : int
  • Qualifiers : int

KeyDown

  • Key : int
  • Scancode : int
  • Buttons : int
  • Qualifiers : int
  • Repeat : bool

KeyUp

  • Key : int
  • Scancode : int
  • Buttons : int
  • Qualifiers : int

TextInput

TextEditing

  • Composition : String
  • Cursor : int
  • SelectionLength : int

JoystickConnected

  • JoystickID : int

JoystickDisconnected

  • JoystickID : int

JoystickButtonDown

  • JoystickID : int
  • Button : int

JoystickButtonUp

  • JoystickID : int
  • Button : int

JoystickAxisMove

  • JoystickID : int
  • Button : int
  • Position : float

JoystickHatMove

  • JoystickID : int
  • Button : int
  • Position : int

TouchBegin

  • TouchID : int
  • X : int
  • Y : int
  • Pressure : float

TouchEnd

  • TouchID : int
  • X : int
  • Y : int

TouchMove

  • TouchID : int
  • X : int
  • Y : int
  • DX : int
  • DY : int
  • Pressure : float

GestureRecorded

  • GestureID : unsigned

GestureInput

  • GestureID : unsigned
  • CenterX : int
  • CenterY : int
  • NumFingers : int
  • Error : float

MultiGesture

  • CenterX : int
  • CenterY : int
  • NumFingers : int
  • DTheta : float (degrees)
  • DDist : float

DropFile

InputFocus

  • Focus : bool
  • Minimized : bool

MouseVisibleChanged

  • Visible : bool

MouseModeChanged

  • Mode : MouseMode
  • MouseLocked : bool

ExitRequested

SDLRawInput

  • SDLEvent : SDL_Event*
  • Consumed : bool

InputBegin

InputEnd

Navigation events

NavigationMeshRebuilt

NavigationAreaRebuilt

NavigationTileAdded

NavigationTileRemoved

NavigationAllTilesRemoved

CrowdAgentFormation

  • Node : Node pointer
  • CrowdAgent : CrowdAgent pointer
  • Index : unsigned
  • Size : unsigned
  • Position : Vector3 [in/out]

CrowdAgentNodeFormation

  • Node : Node pointer
  • CrowdAgent : CrowdAgent pointer
  • Index : unsigned
  • Size : unsigned
  • Position : Vector3 [in/out]

CrowdAgentReposition

CrowdAgentNodeReposition

CrowdAgentFailure

CrowdAgentNodeFailure

CrowdAgentStateChanged

CrowdAgentNodeStateChanged

NavigationObstacleAdded

  • Node : Node pointer
  • Obstacle : Obstacle pointer
  • Position : Vector3
  • Radius : float
  • Height : float

NavigationObstacleRemoved

  • Node : Node pointer
  • Obstacle : Obstacle pointer
  • Position : Vector3
  • Radius : float
  • Height : float

Network events

ServerConnected

ServerDisconnected

ConnectFailed

ClientConnected

ClientDisconnected

ClientIdentity

ClientSceneLoaded

NetworkMessage

  • Connection : Connection pointer
  • MessageID : int
  • Data : Buffer

NetworkUpdate

NetworkUpdateSent

NetworkSceneLoadFailed

RemoteEventData

Physics2D events

PhysicsUpdateContact2D

PhysicsBeginContact2D

PhysicsEndContact2D

NodeUpdateContact2D

NodeBeginContact2D

NodeEndContact2D

Physics events

PhysicsPreStep

PhysicsPostStep

PhysicsCollisionStart

PhysicsCollision

PhysicsCollisionEnd

NodeCollisionStart

NodeCollision

NodeCollisionEnd

Resource events

ReloadStarted

ReloadFinished

ReloadFailed

FileChanged

LoadFailed

ResourceNotFound

UnknownResourceType

ResourceBackgroundLoaded

ChangeLanguage

Scene events

SceneUpdate

  • Scene : Scene pointer
  • TimeStep : float

SceneSubsystemUpdate

  • Scene : Scene pointer
  • TimeStep : float

UpdateSmoothing

  • Constant : float
  • SquaredSnapThreshold : float

SceneDrawableUpdateFinished

  • Scene : Scene pointer
  • TimeStep : float

TargetPositionChanged

TargetRotationChanged

AttributeAnimationUpdate

  • Scene : Scene pointer
  • TimeStep : float

AttributeAnimationAdded

  • ObjectAnimation : Object animation pointer
  • AttributeAnimationName : String

AttributeAnimationRemoved

  • ObjectAnimation : Object animation pointer
  • AttributeAnimationName : String

ScenePostUpdate

  • Scene : Scene pointer
  • TimeStep : float

AsyncLoadProgress

  • Scene : Scene pointer
  • Progress : float
  • LoadedNodes : int
  • TotalNodes : int
  • LoadedResources : int
  • TotalResources : int

AsyncLoadFinished

NodeAdded

  • Scene : Scene pointer
  • Parent : Node pointer
  • Node : Node pointer

NodeRemoved

  • Scene : Scene pointer
  • Parent : Node pointer
  • Node : Node pointer

ComponentAdded

ComponentRemoved

NodeNameChanged

NodeEnabledChanged

NodeTagAdded

NodeTagRemoved

ComponentEnabledChanged

TemporaryChanged

NodeCloned

  • Scene : Scene pointer
  • Node : Node pointer
  • CloneNode : Node pointer

ComponentCloned

InterceptNetworkUpdate

UI events

UIMouseClick

  • Element : UIElement pointer
  • X : int
  • Y : int
  • Button : int
  • Buttons : int
  • Qualifiers : int

UIMouseClickEnd

  • Element : UIElement pointer
  • BeginElement : UIElement pointer
  • X : int
  • Y : int
  • Button : int
  • Buttons : int
  • Qualifiers : int

UIMouseDoubleClick

  • Element : UIElement pointer
  • X : int
  • Y : int
  • Button : int
  • Buttons : int
  • Qualifiers : int

Click

  • Element : UIElement pointer
  • X : int
  • Y : int
  • Button : int
  • Buttons : int
  • Qualifiers : int

ClickEnd

  • Element : UIElement pointer
  • BeginElement : UIElement pointer
  • X : int
  • Y : int
  • Button : int
  • Buttons : int
  • Qualifiers : int

DoubleClick

  • Element : UIElement pointer
  • X : int
  • Y : int
  • Button : int
  • Buttons : int
  • Qualifiers : int

DragDropTest

DragDropFinish

FocusChanged

NameChanged

Resized

  • Element : UIElement pointer
  • Width : int
  • Height : int
  • DX : int
  • DY : int

Positioned

  • Element : UIElement pointer
  • X : int
  • Y : int

VisibleChanged

Focused

Defocused

LayoutUpdated

Pressed

Released

Toggled

SliderChanged

SliderPaged

  • Element : UIElement pointer
  • Offset : int
  • Pressed : bool

ProgressBarChanged

ScrollBarChanged

ViewChanged

  • Element : UIElement pointer
  • X : int
  • Y : int

ModalChanged

TextEntry

TextChanged

TextFinished

MenuSelected

ItemSelected

  • Element : UIElement pointer
  • Selection : int

ItemDeselected

  • Element : UIElement pointer
  • Selection : int

SelectionChanged

ItemClicked

  • Element : UIElement pointer
  • Item : UIElement pointer
  • Selection : int
  • Button : int
  • Buttons : int
  • Qualifiers : int

ItemDoubleClicked

  • Element : UIElement pointer
  • Item : UIElement pointer
  • Selection : int
  • Button : int
  • Buttons : int
  • Qualifiers : int

UnhandledKey

  • Element : UIElement pointer
  • Key : int
  • Buttons : int
  • Qualifiers : int

FileSelected

MessageACK

  • Ok : bool

ElementAdded

ElementRemoved

HoverBegin

  • Element : UIElement pointer
  • X : int
  • Y : int
  • ElementX : int
  • ElementY : int

HoverEnd

DragBegin

  • Element : UIElement pointer
  • X : int
  • Y : int
  • ElementX : int
  • ElementY : int
  • Buttons : int
  • NumButtons : int

DragMove

  • Element : UIElement pointer
  • X : int
  • Y : int
  • DX : int
  • DY : int
  • ElementX : int
  • ElementY : int
  • Buttons : int
  • NumButtons : int

DragEnd

  • Element : UIElement pointer
  • X : int
  • Y : int
  • ElementX : int
  • ElementY : int
  • Buttons : int
  • NumButtons : int

DragCancel

  • Element : UIElement pointer
  • X : int
  • Y : int
  • ElementX : int
  • ElementY : int
  • Buttons : int
  • NumButtons : int

UIDropFile

  • FileName : String
  • Element : UIElement pointer
  • X : int
  • Y : int
  • ElementX : int (only if element is non-null)
  • ElementY : int (only if element is non-null)

Urho2D events

ParticlesEnd

ParticlesDuration