Pack.getAnimation

Get an animation from this pack. Used variant will be chosen randomly.

struct Pack
@trusted
getAnimation
(
const string name
,
out uint frameCount
)

Parameters

name string

Name of the animation to load.

frameCount uint

out parameter filled with frame count of the animation.

Return Value

Type: Resource!(AnimationPart[])

A Resource tuple, first item is a list of animation parts.

Throws

  • PackException if the animation doesn't exist.
  • rcdata.json.JSONException if the animation isn't valid.

Meta