generate

@JvmStatic
fun generate(animation: SpatialAnimation): AnimationResource

Generates an AnimationResource instance based on the provided subclass of SpatialAnimation.

Return

The generated AnimationResource instance based on the input SpatialAnimation subclass.

Parameters

animation

The subclass instance of SpatialAnimation used to generate the corresponding AnimationResource.

Throws

IllegalArgumentException

If the animation type is not supported.

If generation fails at the native layer.