AssetTagRuntime๏ƒ

Inherits: RefCounted < Object

Runtime helpers for reading and baking asset tags outside the editor.

Description๏ƒ

Provides static APIs to read cached project tag assignments at runtime and to bake per-asset tag sidecars into an export output directory.

Methods๏ƒ

Error

bake_tags_for_export(export_output_dir: String) static

void

invalidate_cache() static

void

notify_sidecar_dirty() static

PackedStringArray

read_tags_for_asset(path: String) static

PackedStringArray

read_tags_for_export_bake(export_output_dir: String, path: String) static


Method Descriptions๏ƒ

Error bake_tags_for_export(export_output_dir: String) static ๐Ÿ”—

Writes per-asset tag sidecar JSON files under export_output_dir. Returns @GlobalScope.OK on success, or an Error if the bake fails.


void invalidate_cache() static ๐Ÿ”—

Clears the in-memory runtime tag index cache so the next read reloads from disk.


void notify_sidecar_dirty() static ๐Ÿ”—

Marks dirty sidecars for merge into the runtime cache on the next read.


PackedStringArray read_tags_for_asset(path: String) static ๐Ÿ”—

Returns the cached tags assigned to the project asset at path.


PackedStringArray read_tags_for_export_bake(export_output_dir: String, path: String) static ๐Ÿ”—

Reads baked tags for path from sidecars under export_output_dir.