Custom resource with variable number of properties

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By frankjrix

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)

:bust_in_silhouette: Reply From: Xrayez

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.

Thank you, will check that out!

frankjrix | 2020-04-28 08:32