So I have a bunch of UI popups with text that I am instantiating dynamically at runtime via JSON. However, I would love to be able to generate them in the editor, without having to manually create each one so that I could edit a few of them that didn’t layout correctly.
I have successfully used @Leonidas Uranus Editor to run my script in the editor, and I can see the popups in the scene view, however the UI Element Group that is a parent to the popups is not updating in the hierarchy to show these new children. If I turn the element group off the popups turn off, if I add a Layout Group the popups will space out correctly, I just cannot get them to show in the hierarchy.
The issue seems to be that I am not instantiating the popups via the editor itself so I have been trying (very unsuccessfully) using the JavaScript Console and editor.call commands to clone my Element Group, copy paste an instance of the element group, synchInHierarchy the element group. But I am just stuck at this point.
Hoping someone can help me out!
Thanks so much,
Justin