-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exporting arrays of hints #3586
Comments
It'd also be nice if you could export a subClass with exported variables exposed, and also export an array of subclasses. |
@LeonardMeagher2 Better open another issue about it, as this is about arrays, and your is about custom types. |
Typed arrays are planned, in fact.. but not for the near future. Tagging 3.0 for now |
@reduz I'm not talking about typed arrays, but about exporting arrays of hints. |
Not critical for the upcoming 2.1, so moving to the next milestone. |
This would made plugins and tools so much more easier. I'm now trying to make an arrays of meshes, and the only way currently is to set a general purpose Array, then create an index of type Object, then set the Object to be a Mesh. Too many steps for, let's say, an artist if he/she want to set 5 Meshes with 5 LOD. |
Hm.. guess I can try doing it 😃 |
…opertyEdit) Closes godotengine#3586, by implementing the `1b` variation mentioned there.
TL;DR; Support exporting of arrays with a given export hint, as in
export([], String, FILE)
It would be nice if one can export an array of some export type, like an array of enums, an array of filepaths, etc. So, in other words, support not only:
but also:
or even:
Because syntax needs some discussion, I would go on and propose a few variants:
[
and]
) before other export parametersAs for my own preference, I like
1b
and3a
the most, because I think they would match the current style. But1a
isn't too bad either. I wouldn't go with any of2b
,3b
,4a
or4b
, as they don't match the style well enough.P.S. I'm not looking for workarounds, and I know that they exist for
NodePaths
or 2D arrays. Also, some things like exported enums or file paths can't be really worked around without editor plugins for the moment.P.P.S. There was a similar issue earlier #3388, but it wasn't as general as this one, and it got closed as it was asking for some way to assign resources (not any export type) in arrays.
The text was updated successfully, but these errors were encountered: