0 votes

Hi, I was wondering if someone could help me to accomplish this, a custom resource with a variable number of subresource instances. For example (not my actual use case) a container resource LootTable that contains a variable number of LootElements (with their own properties [name, weight, path to actual item scene] also to be set in the editor) subresources to be edited on a per-instance basis from the inspector.

EDIT: best answer provided here (reddit)

asked Apr 27 in Engine by frankjrix (22 points)
edited Apr 28 by frankjrix

1 Answer

0 votes
Best answer

I'm not sure if this could help your use case, but you may want to look at resource collections as provided by godot-next GDScript library.

answered Apr 27 by Xrayez (1,236 points)
selected Apr 28 by frankjrix

Thank you, will check that out!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.