Skip to main content

GIF

The GIF control allows you to directly insert animated images in "gif" format and control the speed of the animation by adjusting parameters.

Name, ID, coordinates, width, height, blocking touch, transform, texture compression mode, replaceable upgrades, texture as a common property, in the "Basic Design - Edit Properties" part of the unified introduction will not repeat here.

Let's upload a gif image in the IDE resource bar.


Insert that texture in the texture settings of the GIF control.

The "Interval" property of the control is used to control the speed of the animation, the unit of this parameter is ms (milliseconds), the value of this parameter needs to be greater than or equal to 30, less than 65535.


Run the simulation in IDE (at this time, the value of "interval" is 40), the effect is as follows:


We change the value of "Interval" to 80 and run the simulation again, the result is as follows: