Back to Filament

destroy

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

1.75.0696 B
Original Source

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

destroy

[main]
open fun destroy(entity: Int)

Destroys this component from the given entity, children are orphaned.

Parameters

main

entityan Entity. If this transform had children, these are orphaned, which means their local transform becomes a world transform. Usually it's nonsensical. It's recommended to make sure that a destroyed transform doesn't have children.

See also

create