Add manner to see and modify export variables for autoload scripts #5911
Spartan322
started this conversation in
Editor
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Related: #4993
Every so often I see addons that add autoloads (usually singletons) to my projects, and sometimes when I'm using them too, I find I'd also want to have accessible variables without necessarily modifying the script every time.
The biggest ways to currently sort of replicate this behavior is:
However both of these have a bunch of QoL/UI issues to me, especially since addons don't necessarily need to mess with the editor interface:
Both of these methods require intentional paradigms to implement that aren't enforced in any manner by the language which can cause misunderstanding or perhaps even poor implementations. (or otherwise constant boilerplate)
In essence what seems to make the most sense (until/unless #4993 is added) is for an autoload to detect export variables and display another button that operates much like the inspector but only for those with export variables. (or perhaps its always active and just acts like selecting a node in the inspector but I feel that at such a point that might as well be a full implementation of #4993 then)
Beta Was this translation helpful? Give feedback.
All reactions