SvgSpritesheetBuilder
Standardized in-editor tool node and builder for packing a directory of FontAwesome
duotone SVGs into a padded grid .svg texture atlas and generating its
corresponding .tres SpritesheetAtlas resource.
Constants
Constructors
Class methods
Ensures <output_svg>.import exists with lossless compression (compress/mode=0, detect_3d/compress_to=0)
so Godot does not apply lossy VRAM compression to the SVG spritesheet.
Extracts all <path .../> elements from a normalized SVG string.
Scans source_dir for all .svg files, normalizes each file in-place if needed,
writes the combined padded spritesheet to output_path, and writes the .tres
SpritesheetAtlas resource to resource_path when provided.
Generates a combined SVG spritesheet and .tres SpritesheetAtlas resource from a Config.
Generates all registered preset spritesheets (FACES_CONFIG and LETTER_GLYPHS_CONFIG).
Normalizes a single FontAwesome SVG string so that any <path> with opacity
(transparent secondary duotone layer) has its opacity removed and its fill
changed to solid white (#ffffff), while keeping primary black paths (fill="currentColor") black.
Writes a Godot 4 .tres resource file for SpritesheetAtlas.
Instance methods
Dispatches inspector tool button clicks on this object.
Virtual method and property dispatch hooks overridden by class registration macros.
Delta timestep is received with 64-bit precision (Float64).
Dispatches generic virtual methods with raw arguments and return buffer.
Invoked by the GDExtension bridge when retrieving an exposed @export property.
Invoked by the GDExtension bridge when setting an exposed @export property.
Calls the named method on the object with variable arguments.