Editor 05 Custom Nodes - renatopp/behavior3js GitHub Wiki
In order to add custom nodes in the editor:
-
Click in the button
Add Custom Nodes
at the node panel; -
Type the name (obligatory), the title (optional), and select the node category.
- Note: you can add several nodes together, just press
+
to open new rows.
- Note: you can add several nodes together, just press
-
Press
Add
button.
Notice that:
- You don't need to create any code in order to add custom nodes in the editor, but...
- You need to specify the node class when loading it with Behavior3JS;
- Be aware that, the node name will be used to find the node when loading it from JSON.
- Consult [to know more](Core 05 Creating Trees From JSON).
You can edit existing nodes by clicking the edit
button (besides the node at the node panel).
Notice that, you cannot edit default nodes.
After clicking the edit
button (besides the node at the node panel), you can remove the node by pressing the Remove
button.
Notice that, you cannot remove default nodes.