Hi, I've have found a really weird behaviour in the loading of my UI (found it while building a tittle scene for VR). I've no clue if it has anything to do with AC, but it does seem to affect the menu system. So, I've come to ask for advice. It also better be noted that I had not noticed this before because I was mostly using Prefabed UI, really, the strange behaviour with my "in Scene" worldspace inventory menu was most probably a prelude to this. Anyway, basically whenever I scene change any in-scene UI sort of breaks and my prefabbed UI stop being under DontDestroyOnLoad. If I open the scene directly everything works right, but if I come from another scene the position in in-scene UI is wrong and, if I check the menu manager, in-scene menus just shows "none" in all the fields as if AC was not able to see them at all. Also, prefabed UI move from under Don'tDestroyOnLoad and unto the regular _UI empty game object and stayu that way in subsequent scene changes (not sure if that's normal or not, but it's not how a first time opened scene behaves). another strange thing is, that even though In-scene UI in the menu manager shows all fields as "none" they still get populated and sort of work, but the positioning gets screwed up (weirdest is all canvas and empty objects show no change in their tranform/rect transform yet still look displaced). If I use the RebuildMenus command, which I had stopped using, then all the prefabbed UI returns to being inside Don'tDestroyOnLoad but other hand placed, scene UI, breaks completely. Anyway, I've no idea what could be causing this... It might be a unity issue though, as the positionign getting screwed happens even to two UI billboards which are not connected to AC (the two logo billboards). Ah, all are Worldspace Canvases.
Anyway, here's some quick screenshots from when I though it was something else, I'll get better ones later (It's really late here and I'm beat, sorry). The right one is when the UI is higher up. As usually, any advice will be greatly appreciated (or any ideas).
Comments
What Unity does with objects marked as "Don't destroy on load" seems to be version-dependent. What version of Unity are you using?