bindMaterial
@JvmStatic
Generates an AnimationBindTarget and binds it to the material of an entity. See MaterialTarget to choose the value used to describe the animation behavior when using the AnimationBindTarget.
Return
The AnimationBindTarget instance generated and bound.
Parameters
materialIndex
The index of the material to bind to (default is 0).
materialTarget
The MaterialTarget defining the material property to animate.
@JvmStatic
Generates an AnimationBindTarget and binds it to the material of an entity, by directly specifying the material property name as a string.
Return
The AnimationBindTarget instance generated and bound.
Parameters
materialIndex
The index of the material to bind to (default is 0).
materialPropertyName
The name of the material property to bind the animation to.