EventNode

Last modified: Jul 24, 2026

EventNode is a node that executes a callback during specific update phases.

Constructor

new EventNode(eventType, callback)
ParameterTypeDefault Value
eventTypestring—
callbackFunction—

Creates an EventNode.

AccessorType

Properties

PropertyTypeDefault Value
eventTypestring—
callbackFunction—
updateTypestring—
updateAfterTypestring—
updateBeforeTypestring—
MethodType

Extends

Node

OnObjectUpdate

Creates an event that triggers a function every time an object (Mesh|Sprite) is rendered.

The event will be bound to the declared TSL function Fn(); it must be declared within a Fn() or the JS function call must be inherited from one.

Properties

Function

Returns

EventNode

OnMaterialUpdate

Creates an event that triggers a function when the first object that uses the material is rendered.

The event will be bound to the declared TSL function Fn(); it must be declared within a Fn() or the JS function call must be inherited from one.

Properties

Function

Returns

EventNode
N E W

OnFrameUpdate

Creates an event that triggers a function every frame.

The event will be bound to the declared TSL function Fn(); it must be declared within a Fn() or the JS function call must be inherited from one.

Properties

Function

Returns

EventNode
N E W

OnAfterObjectUpdate

Creates an event that triggers a function every time an object (Mesh|Sprite) has been rendered.

The event will be bound to the declared TSL function Fn(); it must be declared within a Fn() or the JS function call must be inherited from one.

Properties

Function

Returns

EventNode

OnBeforeObjectUpdate

Creates an event that triggers a function before an object (Mesh|Sprite) is updated.

The event will be bound to the declared TSL function Fn(); it must be declared within a Fn() or the JS function call must be inherited from one.

Properties

Function

Returns

EventNode

OnBeforeMaterialUpdate

Creates an event that triggers a function before the material is updated.

The event will be bound to the declared TSL function Fn(); it must be declared within a Fn() or the JS function call must be inherited from one.

Properties

Function

Returns

EventNode
N E W

OnBeforeFrameUpdate

Creates an event that triggers a function before every frame.

The event will be bound to the declared TSL function Fn(); it must be declared within a Fn() or the JS function call must be inherited from one.

Properties

Function

Returns

EventNode
N E W

OnBeforeRenderPipeline

Creates an event that triggers a function before the render pipeline is rendered.

The node must be part of a node chain that is used as the output of a RenderPipeline, otherwise the event is ignored.

Properties

Function

Returns

EventNode
N E W

OnAfterRenderPipeline

Creates an event that triggers a function after the render pipeline is rendered.

The node must be part of a node chain that is used as the output of a RenderPipeline, otherwise the event is ignored.

Properties

Function

Returns

EventNode