setParent

fun TransformManager.setParent(transformInstance: Int, newParent: Int?)

Re-parents an entity to a new one.

Parameters

transformInstance

the EntityInstance of the transform component to re-parent.

newParent

the EntityInstance of the new parent transform. It is an error to re-parent an entity to a descendant and will cause undefined behaviour.

See also

TransformManager.getInstance