FileLoadingHelper
Provides utility methods for loading resources and scripts.
Description
A FileLoadingHelper provides shorthand methods for loading resources and scripts from predefined folders.
Methods
Texture | load_icon ( String icon_path ) |
PackedScene | load_scene ( String scene_path ) |
GDScript | load_script ( String script_path ) |
Texture | load_texture ( String texture_path ) |
Method Descriptions
GDScript load_script ( String script_path ):
Loads the script at:
root > "scripts" > script_path + ".gd"
PackedScene load_scene ( String scene_path ):
Loads the scene at:
root > "scenes" > scene_path + ".tscn"
Texture load_icon ( String icon_path ):
Loads the icon at:
root > "textures" > "icons" > icon_path
Texture load_texture ( String texture_path ):
Loads the texture at:
root > "textures" > texture_path