EventNode

Last modified: Dec 9, 2025

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
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

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