addChild

@MainThread
fun addChild(entity: Entity): Boolean

Adds a child entity to the current entity instance.

Return

true if the operation succeeds; false otherwise.

Parameters

entity

The child entity instance to add.