MaterialAnimation()

Syntax

MaterialAnimation(#Material, Texture$, NbFrames, Time.f)
Description
Add an animated texture to the material. An animated texture is composed of any number of textures, all the same size, with the frame number appended before the extension in their filename. For example, if "test.jpg" is specified as 'Texture$' and 'NbFrames' is set to 3, the textures "test_0.jpg", "test_1.jpg" and "test_2.jpg" will be loaded and used for the material.

Parameters

#Material The material to use.
Texture$ The texture filename to use.
NbFrames Number of frames of the animated texture.
Time Time (in milliseconds) to play the whole animation. Once fully played, it will loop again from the start.

Return value

None.

Remarks

Usually, all frames are contained in a zip file with the same name as texture (ex Texture.zip) and accessible by Add3DArchive() and Parse3DScripts().

Supported OS

All

<- IsMaterial() - Material Index - MaterialBlendingMode() ->