Skip to content

Constructor

NodeSystem()

Instantiates a node system class.

Return Value

TypeDescription
NodeSystemThe node system class

Properties

uuid

Gets the UUID of the system.


entities

Gets the list of extended nodes for this system.


enable

The enabled state of this system.

Methods

destroy()

Removes the current system instance.

This will execute the system's onDisable and onDestroy methods.


onEntityNodeAdded()

Called when an entity node is successfully added to the system.

You can only call the parent class's implementation within this method; you cannot call this method directly elsewhere.


onEntityNodeRemoved()

Called when an entity node is successfully removed from the system.

You can only call the parent class's implementation within this method; you cannot call this method directly elsewhere.


onLoad()

The system initialization function, called before the system is registered in the registry.

This is a lifecycle method; the parent class may not have an implementation. You can only call the parent class's implementation within this method; you cannot call this method directly elsewhere.


update()

If the system is enabled, this is called every frame after all components' update.

This is a lifecycle method; the parent class may not have an implementation. You can only call the parent class's implementation within this method; you cannot call this method directly elsewhere.

Parameters

TypeDescription
deltaTimeThe time difference since the last update, in milliseconds

postUpdate()

If the system is enabled, this is called every frame after all components' lateUpdate.

This is a lifecycle method; the parent class may not have an implementation. You can only call the parent class's implementation within this method; you cannot call this method directly elsewhere.

Parameters

TypeDescription
deltaTimeThe time difference since the last update, in milliseconds

onEnable()

Called when the system is enabled, triggered when the system's enable property changes from false to true.

This is a lifecycle method; the parent class may not have an implementation. You can only call the parent class's implementation within this method; you cannot call this method directly elsewhere.


onDisable()

Called when the system is disabled, triggered when the system's enable property changes from true to false.

This is a lifecycle method; the parent class may not have an implementation. You can only call the parent class's implementation within this method; you cannot call this method directly elsewhere.


onDestroy()

Called when the system is destroyed, this is the last lifecycle method before the system is completely cleaned up.

This is a lifecycle method; the parent class may not have an implementation. You can only call the parent class's implementation within this method; you cannot call this method directly elsewhere.

神岛实验室