pandora icon indicating copy to clipboard operation
pandora copied to clipboard

Array exports

Open bitbrain opened this issue 2 years ago • 1 comments
trafficstars

Ability to export arrays as such in any script:

@export var array:Array[PandoraEntity]

and even custom types:

@export var array:Array[CustomType]

Ensure to write unit tests for this, as well as update the documentation!

bitbrain avatar Sep 17 '23 20:09 bitbrain

I'm new to EditorInspectorPlugins, so there might be hidden issues here.... BUT! This tweak seems to support setting exported PandoraEntities in arrays: https://github.com/russmatney/dino/commit/c22d952fe24b4e6c9b8a13c4a17c4f9354e0819c

I'll keep toying with it to see if I run into any surprises, but just to share - maybe this is already available

russmatney avatar Apr 21 '24 20:04 russmatney