add

fun add(name: String, animationResource: AnimationResource): Boolean

Adds a new animation resource to the library with the specified name.

If the name is already used, it will return false.

Return

True if the animation resource was successfully added, false otherwise.

Parameters

name

The name of the animation resource.

animationResource

The animation resource to add.