ResourceImporterGIF๏
Inherits: ResourceImporter < RefCounted < Object
Imports a .gif file as an animated GIFTexture.
Description๏
Default importer for .gif files. Decodes the animation into a GIFTexture, which plays back in any node accepting a Texture2D. To import the same file as a SpriteFrames for AnimatedSprite2D instead, select SpriteFrames in the Import dock's Import As dropdown (ResourceImporterGIFFrames).
Properties๏
|
||
|
||
|
||
|
||
|
||
|
||
|
Property Descriptions๏
bool autoplay_on_load = true ๐
If true, the imported GIFTexture starts playing as soon as it is loaded. Matches GIFTexture.autoplay_on_load.
bool bake_compress = false ๐
If true, compresses baked frame textures (VRAM/WebP depending on project settings) to reduce memory use at the cost of quality and load time.
Store: frame textures are baked during import and stored in the imported resource. Generate On Load: only source data is stored; frames are generated on first use, trading startup cost for smaller imports.
Source: render raw GIF frames. Baked: composite disposal, offsets, and transparency into full-canvas frames. Matches GIFTexture.display_mode.
Dithers semi-transparent pixels when baking, improving edges on backgrounds that do not match the GIF's transparency color.
Netscape loop count written onto the imported texture. 0 loops forever; a positive value plays that many times. Matches GIFTexture.netscape_loop_count.
Playback speed applied to the imported GIFTexture. Negative values play in reverse. Matches GIFTexture.speed_scale.