Mixins
Properties
Is this object and all of its anscestors active?
The number of children this object has
List of children of this object.
The full path of the object is its name along with all of it's ancestor names separated by "/".
Is this object the root of the hierarchy, meaning it has no parent?
The parent of this object
The scene the object belongs to
Is this object and all of its ancestors selectable?
Is this object and all of its ancestors visible?
Methods
addChild(object, index)
Add a child to the object, setting the child's parent to be this object.
object |
Hierarchy | |
index |
number |
findObjectById(id)
Find a child with the given id.
id |
String |
findObjectByName(name, recursive) → nullable Hierarchy
Find a child with the given name.
name |
String | The name of the object to look for. |
recursive |
bool | If true, all descendents will be searched. |
findObjectsByFilter(filter) → Array.<Hierarchy>
Return a list of objects that pass the given filter
filter |
function | Returns true if the object should be included |
- Array.<Hierarchy>
getChild(index)
Get the child at the given index.
index |
number |
hasChild(obj) → bool
Checks if the given object a child of this object/
obj |
Hierarchy |
- bool
removeAllChildren()
Remove all children from the object.
removeChild(object)
Remove a child from this objects list of children.
object |
Hierarchy |