GBAssetResolver
Gets diagnostic information about a folder's contents
Gets diagnostic information about a folder’s contents
Version: v5.0.0
Inherits: RefCounted
Source: gb_asset_resolver.gd
Parsing: AST-based for maximum accuracy with symbol typing
Methods
load_placeables
Signature: static load_placeables(folder_path: String, individual_placeables: Array[Placeable] = []: Variant) -> Array
Loads placeables from a folder path, maintaining backward compatibility with PlaceableLoader
Returns: Array
Static: true
Parameters:
folder_path: Stringindividual_placeables: Array[Placeable] = []: Variant
load_placeables_with_result
Signature: static load_placeables_with_result(folder_path: String, individual_placeables: Array[Placeable] = []: Variant) -> LoadResult
Loads placeables and returns detailed LoadResult for advanced error handling
Returns: LoadResult
Static: true
Parameters:
folder_path: Stringindividual_placeables: Array[Placeable] = []: Variant
load_category_tags
Signature: static load_category_tags(folder_path: String, individual_tags: Array[CategoricalTag] = []: Variant) -> Array
Loads category tags from a folder path
Returns: Array
Static: true
Parameters:
folder_path: Stringindividual_tags: Array[CategoricalTag] = []: Variant
load_category_tags_with_result
Signature: static load_category_tags_with_result(folder_path: String, individual_tags: Array[CategoricalTag] = []: Variant) -> LoadResult
Loads category tags and returns detailed LoadResult for advanced error handling
Returns: LoadResult
Static: true
Parameters:
folder_path: Stringindividual_tags: Array[CategoricalTag] = []: Variant
load_placeable_sequences
Signature: static load_placeable_sequences(folder_path: String, individual_sequences: Array[PlaceableSequence] = []: Variant) -> Array
Loads placeable sequences from a folder path
Returns: Array
Static: true
Parameters:
folder_path: Stringindividual_sequences: Array[PlaceableSequence] = []: Variant
load_placeable_sequences_with_result
Signature: static load_placeable_sequences_with_result(folder_path: String, individual_sequences: Array[PlaceableSequence] = []: Variant) -> LoadResult
Loads placeable sequences and returns detailed LoadResult for advanced error handling
Returns: LoadResult
Static: true
Parameters:
folder_path: Stringindividual_sequences: Array[PlaceableSequence] = []: Variant
load_assets_of_type
Signature: static load_assets_of_type(folder_path: String, asset_type: GDScript, individual_assets: Array = []) -> LoadResult
Generic asset loading function that can load any resource type from a folder
Returns: LoadResult
Static: true
Parameters:
folder_path: Stringasset_type: GDScriptindividual_assets: Array(optional, default:[])
_load_from_folder
Signature: static _load_from_folder(folder_path: String, asset_type: GDScript) -> LoadResult
Internal helper to load assets from a folder
Returns: LoadResult
Static: true
Parameters:
folder_path: Stringasset_type: GDScript
_load_single_asset
Signature: static _load_single_asset(file_path: String, expected_type: GDScript, tolerate_type_mismatch: bool = false) -> SingleAssetResult
Internal helper to load a single asset file with tolerance for type mismatches
Returns: SingleAssetResult
Static: true
Parameters:
file_path: Stringexpected_type: GDScripttolerate_type_mismatch: bool(optional, default:false)
validate_folder_path
Signature: static validate_folder_path(folder_path: String) -> bool
Validates that a folder path exists and is accessible
Returns: bool
Static: true
Parameters:
folder_path: String
get_folder_diagnostics
Signature: static get_folder_diagnostics(folder_path: String) -> Dictionary
Gets diagnostic information about a folder’s contents
Returns: Dictionary
Static: true
Parameters:
folder_path: String