This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
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)

in Engine by (26 points)
edited by

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.

by (1,422 points)
selected by

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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.