insert(...)
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
insert(indx: number, node: Node): this;
Inserts a node into the group at the specified index.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
indx | number | The index in the children of this group to place the node. The first child is at index 0. |
node | Z.Node | The node to insert. |
Returns
Section titled “Returns”this
Example
Section titled “Example”mygroup.insert(2, myobject);