Godot Version
4.4.1
Question
I’ve seen plenty of tutorials about how great custom resources are, and I can definitely see their use, but I’m trying to understand when it’s better to use a custom resource over something like composition with nodes. It seems to me most things you can do with custom resources you could do by attaching a script to a node and using an export variable to access that node’s script in the parent script.
The two things I can see that are different are that you can export resources directly instead of needing an intermediate node and that resources only load once, meaning any changes to a resource will take effect globally. These are clear advantages to using custom resources, but I feel like I might be missing something.
Also, what are the reasons to use nodes instead of resources? The docs say nodes give you functionality and resources give you data, but resources can define methods and signals, so I’m unclear on what the difference is. Is it that resources are unable to call functions but they can define them for nodes to call?