getMorphTargetCount

actual fun getMorphTargetCount(instance: EntityInstance): Int

Get the number of morph targets in the given entity.

Return

the number of morph targets

Parameters

instance

Instance of the component obtained from getInstance()

expect fun getMorphTargetCount(instance: EntityInstance): Int

Get the number of morph targets in the given entity.

Return

the number of morph targets

Parameters

instance

Instance of the component obtained from getInstance()

actual fun getMorphTargetCount(instance: EntityInstance): Int

Get the number of morph targets in the given entity.

Return

the number of morph targets

Parameters

instance

Instance of the component obtained from getInstance()

actual fun getMorphTargetCount(instance: EntityInstance): Int

Get the number of morph targets in the given entity.

Return

the number of morph targets

Parameters

instance

Instance of the component obtained from getInstance()

@PlatformGap(platforms = [FilamentPlatform.WEB], behavior = "always returns 0 — RenderableManager::getMorphTargetCount is not registered with embind (it exists in C++ but google/filament#10216 did not add it); count morph targets from the glTF JSON instead.")
actual fun getMorphTargetCount(instance: EntityInstance): Int

Get the number of morph targets in the given entity.

Return

the number of morph targets

Parameters

instance

Instance of the component obtained from getInstance()