Repository navigation
ResourceTableUtils
Inherits: Object
Utilities to make managing resource tables easier.
int import_csv(StringName resource_class_name, PackedStringArray resource_paths, String path) static
Exposed in case users want to automate CSV editing. resource_class_name is the name of the resource class you are editing. resource_paths is a list of all of the path names you wish to import data for. path is the output path for the .csv file.
If paths are in the .csv but not found in resource_paths, they will be created, and if paths are in the resouce_paths but are not in the .csv they will be deleted. You can use this then for bulk edits of resources.
int export_csv(StringName resource_class_name, PackedStringArray resource_paths, String path) static
Exposed in case users want to automate CSV editing. resource_class_name is the name of the resource class you are editing. resource_paths is a list of all of the path names you wish to export. path is the output path for the .csv file.
Used by the export_resource_tables.gd script to find resource generator scripts.
This is a utility function for table generator scripts.
Godot doesn't like automation of deleting and re-creating resources, so this is a utility to find or create resource files so you can edit or create them with the same API. The intended use case is to create the generated tables. Be aware that the items lists will need to be cleared or assigned if you are updating them.
This is a utility function for table generator scripts.
It finds all resources of a type and anything that inherits from it. The intended use case is to find resources to assign to generated table items arrays.
If you want to do custom tables you can filter on these results as well.
Documentation for the resource_tables GDExtension addon.