Add an item or folder to the current folder
A shortcut for SceneNode.setParent()
A shortcut for SelectionService.add(id)
Shortcut for SelectionService.deselect(id)
Detaches the node from its parent After detaching the parent the current node will be a first-level-nesting node
Returns all direct children folders
Returns the item index in the list of all nodes. itemIndex defines the draw order of the node itemIndex for a SceneFolder is the itemIndex of the previous SceneItem
To change itemIndex use placeBefore
and placeAfter
methods
nodeInd | itemInd | nodes tree 0 | 0 | Folder1 1 | 0 | |_Folder2 2 | 0 | |_ Item1 3 | 1 | \_ Item2 4 | 2 | Item3 5 | 2 | Folder3 6 | 3 | |_Item4 7 | 4 | \_Item5
Returns all direct children items
serialize folder
Returns all nested nodes. To get only direct children nodes
Returns the closest next item from the nodes list
Returns a node with the next nodeIndex
Returns the node index in the list of all nodes
To change node index use placeBefore
and placeAfter
methods
Returns all direct children To get all nested children
Returns parent folder
Returns the node path - the chain of all parent ids for the node
Returns the closest previous item from the nodes list
Returns a node with the previous nodeIndex
Returns a Selection object Helpful for bulk operations
Returns true if the node is inside the folder
Check the node is scene folder
Check the node is scene item
A shortcut for SelectionService.isSelected(id)
Place the current node after the provided node This method can change the parent of current node
Place the current node before the provided node This method can change the parent of current node
Removes the node.
For folders, all nested folders and items also will be removed.
To remove a folder without removing the nested nodes, use the SceneItemFolder.ungroup()
method
A shortcut for SelectionService.select(id)
Renames the folder
Sets parent folder
Removes folder, but keep the all nested nodes untouched
API for folders