Back to Filament

create

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

1.75.02.4 KB
Original Source

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

create

[main]
open fun create(entity: Int): Int

Creates a transform component and associates it with the given entity. The component is initialized with the identity transform. If this component already exists on the given entity, it is first destroyed as if destroy was called.

Parameters

main

entityan Entity to associate a transform component to.

See also

destroy

[main]
open fun create(entity: Int, parent: Int, localTransform: Array<Float>): Int

open fun create(entity: Int, parent: Int, localTransform: Array<Double>): Int

Creates a transform component with a parent and associates it with the given entity. If this component already exists on the given entity, it is first destroyed as if destroy was called.

Parameters

main

entityan Entity to associate a transform component to.
parentthe EntityInstance of the parent transform
localTransformthe transform, relative to the parent, to initialize the transform component with.

See also

destroy