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๏
bake_tags_for_export(export_output_dir: String) static |
|
void |
invalidate_cache() static |
void |
notify_sidecar_dirty() static |
read_tags_for_asset(path: String) static |
|
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.