Back to Filament

setParent

docs/android/dokka/filament-android/com.google.android.filament/-transform-manager/set-parent.md

1.75.0812 B
Original Source

//filament-android/com.google.android.filament/TransformManager/setParent

setParent

[main]
open fun setParent(i: Int, newParent: Int)

Re-parents an entity to a new one.

Parameters

main

ithe EntityInstance of the transform component to re-parent
newParentthe 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

getInstance