Hello,
I have an issue with my root. I use single UIDocument with single PanelSettings:
and I spawn all panels inside its root VisualElement (which only has align/justify and flex-grow set).
In an empty scene everything renders well - root object (VisualElement UI Panel Settings) has its width and height set to 1920 and 1080.
However when I put it in the actual game it suddenly stops working - root’s width and height are just 0.
In the game the GO with UIDocument is instantiated and put inside another GO in DontDestroyOnLoad - I wonder if that may be an issue? Or is it some issue with the ThemeStyleSheet on PanelSettings?
I can’t find any ‘best practices’ concerning the setup of PanelSettings, UIDocument or something like that.
I would appreciate any help with that issue.