Hello!
I am trying to list each item in an Array which was created as part of a resource.
First, I created a resource that exports an Array of Resources via
@export var party : Array[Resource]
I created another resource of characters, which has items like names, stats, etc. I created 3 .tres files with this method.
Then I created a party_members.tres which has the Array of Resources and I placed each of the character.tres inside of it. The class name for this is PartyMembers.
Finally, I am trying to test how I can access this information and that is where I have reached an impasse. I found a solution in Godot 3.0, but I can't reverse engineer it unfortunately.
Attached is the code I have in my "PartyMenu" Node2D gdscript.
When I run this code, nothing is printed in the console.