class FakeGltfEntity : FakeEntity


Test-only implementation of GltfEntity

Summary

Public constructors

Public functions

open Unit

Sets a material override for a mesh in the glTF model.

open Unit
startAnimation(loop: Boolean, animationName: String?)

Starts the animation with the given name.

open Unit

Stops the animation of the glTF entity.

Public properties

open Int

Returns the current animation state of the glTF entity.

Public constructors

FakeGltfEntity

Added in 1.0.0-alpha04
FakeGltfEntity()

Public functions

setMaterialOverride

Added in 1.0.0-alpha04
open fun setMaterialOverride(material: MaterialResource, meshName: String): Unit

Sets a material override for a mesh in the glTF model.

Parameters
material: MaterialResource

The material to use for the mesh.

meshName: String

The name of the mesh to use the material for.

startAnimation

Added in 1.0.0-alpha04
open fun startAnimation(loop: Boolean, animationName: String?): Unit

Starts the animation with the given name.

Parameters
loop: Boolean

Whether the animation should loop.

animationName: String?

The name of the animation to start. If null is supplied, will play the first animation found in the glTF.

stopAnimation

Added in 1.0.0-alpha04
open fun stopAnimation(): Unit

Stops the animation of the glTF entity.

Public properties

animationState

Added in 1.0.0-alpha04
open val animationStateInt

Returns the current animation state of the glTF entity.