Forum rules - please read before posting.

DoNotDestroyOnLoad for Unity UI Prefab

edited June 2017 in Technical Q&A
Hey, sorry if missed this answer anywhere, but does anyone know if there is way to keep unity from destroying my Unity UI Prefabs while loading a new scene via(switch:scene).

I tried adding donotdestroy() to the "_UI" but then it starts to collect all of the Scene UI. 

Sorry for the Trouble, thanks in advance for any help.

unity Ver.5.6.1p4
AC 1.57a

imageimage


Comments

  • edited June 2017
    Unity UI prefabs are set to not destroy on load.

    However, it looks like there's an issue with Unity 5.6, that's causing objects placed in the _UI folder to disappear from the Hierarchy after a scene change.  They should still be present in the actual game, however - are you experiencing otherwise?

    I'll put out a fix in an update soon, but in the meantime just remove the "_UI" folder.
  • That seems to be whats happening. for what ever reason i thought the "_UI" had to be there. 

    thanks for the prompt response!

    I thought i was going crazy.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.