extended by CameraObject, DecalObject, LightObject, MeshObject, ProbeObject, SpeakerObject
Add a game Object as a child of this game Object.
The game Object instance to be added as a child.
Optional (default false) change the scale of the child object to be relative to the parents 3D space or use the original scale.
Get a child game Object of this game Object. Using the childs name property as a lookup.
A string matching the name property of the game Object to fetch.
Object or null
getChildren(recursive:Bool = false):Array<Object>
Get the Trait instance that is attached to this game Object.
The class of type Trait to attempt to retrieve.
Trait or null
inlineremoveChild(o:Object, keepTransform:Bool = false):Void
Remove a child game Object from it's parentage. Does not remove the object from the scene.
The game Object instance to be removed.
Optional (defaut false) keep the transform given by the parent or revert to the objects default.
Remove the Trait from the Object.
The Trait to be removed from the game Object.
Set the given
parentObject as the parent of this object.
null, the object is parented to the scene's
sceneParent, which is the topmost object of the scene tree.
If you want to remove it from the scene, use
parentObject is the object on which this function is called,
The new parent object.
(Optional) Change the scale of the child object to be relative to the new parents 3D space or use the original scale.
(Optional) When unparenting from the old parent, keep the transform given by the old parent or revert to the object's default.