Autoload a resource file?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ethan63

Can we autoload a resource file with extension .tres?

Edit: I solved it by autoload a global script to load the resource file, then i can reference it whenever i need.

:bust_in_silhouette: Reply From: Drawsi

Try this:

I used it for my global variables

:bust_in_silhouette: Reply From: exuin

No - you can only autoload nodes/scripts.

:bust_in_silhouette: Reply From: brainbug

you dont need autoload a resource !!

use load or preload