setParent

@MainThread
fun setParent(newParent: Entity): Boolean

Sets the specified entity as the parent of the current entity.

Return

true if the operation succeeds; false otherwise.

Parameters

newParent

The entity to set as the parent.