Godot Version
Question
I’m trying to develop a turn-based system and need to create a new resource to hold the characters’ data, but every time I create one, I can’t find it!
I’m trying to develop a turn-based system and need to create a new resource to hold the characters’ data, but every time I create one, I can’t find it!
When you create a custom Resource
, it is never listed in the list you are looking at.
To make a new instance of your custom Resource
:
- Create a plain Resource object in the Inspector. This can even be a type that derives Resource, so long as your script is extending that type.
- Set the
script
property in the Inspector to be your script.
All my custom resources are listed in the “Create New Resource” dialog and I can create custom resources directly from there. My scripts look pretty much like the OP’s script (“class_name MyResource extends Resource”).
I wonder why it is done differently in the guide. That seems like a slower way to do the same thing.