ObjectBase

View source

Constructor


constructor ( )

Properties


visible : boolean

View source

Visibility is local to this object. Child visibility is evaluated independently by the systems that collect objects.

Default: true

Methods


add ( ...children: ObjectBase[] ) : void

View source

Parameters

Name Description Default
...children — —

remove ( ...children: ObjectBase[] ) : void

View source

Parameters

Name Description Default
...children — —

traverseBFS ( func: Traverser ) : void

View source

Parameters

Name Description Default
func — —

traverseDFS ( func: Traverser ) : void

View source

Parameters

Name Description Default
func — —

merge ( object: ObjectBase , entityMap?: Map<ObjectBase, ObjectBase> ) : ObjectBase

View source

Merges clones of the source children into this object.

The local object state is left untouched so callers can use this object as a wrapper while still inheriting the loaded hierarchy.

Parameters

Name Description Default
object — —
entityMap? — —