Companion

object Companion

Companion object for AnimationBindTarget.

It provides some easy used static APIs for AnimationBindTarget.

Functions

Link copied to clipboard
@JvmStatic
fun bindMaterial(materialIndex: Int = 0, materialTarget: MaterialTarget): AnimationBindTarget

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.

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

Generates an AnimationBindTarget and binds it to the material of an entity, by directly specifying the material property name as a string.

Link copied to clipboard

Generates an AnimationBindTarget and binds it to the position of an entity.

Link copied to clipboard

Generates an AnimationBindTarget and binds it to the rotation of an entity.

Link copied to clipboard

Generates an AnimationBindTarget and binds it to the scale of an entity.

Link copied to clipboard

Generates an AnimationBindTarget and binds it to the com.pico.spatial.core.math.Transform of an entity.