bindMaterial

@JvmStatic
fun bindMaterial(materialIndex: Int = 0, materialTarget: MaterialTarget): AnimationBindTarget

Binds to a material property of an entity. See MaterialTarget to choose the property.

Return

The created and bound AnimationBindTarget instance.

Parameters

materialIndex

Index of the material to bind (default 0).

materialTarget

The material property to animate.


@JvmStatic
fun bindMaterial(materialIndex: Int = 0, materialPropertyName: String): AnimationBindTarget

Binds to a material property by its string name.

Return

The created and bound AnimationBindTarget instance.

Parameters

materialIndex

Index of the material to bind (default 0).

materialPropertyName

The material property name to animate.