NodeScript Class

Extends Object
Module: Script

Node scripts are build using a graph composed of operations.

They can be used to create interaction without requiring any coding, logic can be build from provided blocks.

Item Index

Attributes

Methods

addNode

(
  • node
)

Add a node the graph, these nodes can be connected with other already existing nodes in the graph.

Parameters:

  • node Node

    Node to be added into the graph.

dispose

()

Disposes the script, can be used to clear resources when the program exits.

Calls the script dispose method if it exists.

initialize

()

Initialize script, automatically called by the runtime.

Compiles the script code and calls the script initialize method if it exists after the code is compiled.

resize

()

Call resize method if available.

The resize method receives width and height as arguments.

update

()

Update node script state runs the update methods from the node graph.

Attributes

graph

NodeGraph

Node graph that composes this script.