Creating new node types
Using prototypes
- The PROTO interface declares items
you can use within the body
- A PROTO is like a JavaScript function
- An interface item is like a JavaScript function argument
- For example:
- Create a PROTO for a Robot node
- Give the Robot node an eyeColor field
- Use that eyeColor in the PROTO body
to set the color of each robot eye