DarkBASIC Professional Help File

DX11 CLONE ANIMATION

Creates a clone of the specified animation.
Clones are useful if you want to play the same animation on different objects at the same time; if you set the same animation for
both objects they will be synchronized, which may not be desired. Create a clone of the animation data to permit both of them to play
independently of one another.

Syntax

    Return Dword = DX11 CLONE ANIMATION(sourceAnim)

Parameters

    sourceAnim

> Dword
> The animation to clone.

Returns

A new Animation instance that contains the same data as the source animation and can be played independently of the source.

See also

ANIMATION Functions Menu
DX11 Function Categories