Daniel Lyons' Notes

preload in GDScript

If I remember correctly preload Is only available in GDScript And is not available in GDExtensions like SwiftGodot.

You can also preload resources. Unlike load, this function will read the file from disk and load it at compile-time. As a result, you cannot call preload with a variable path: you need to use a constant string.

preload in GDScript
Interactive graph