Author Topic: HUD perisistent interface  (Read 2231 times)

Alex_A

  • Newbie
  • *
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 7
  • Unity/NGUI newbie
    • View Profile
HUD perisistent interface
« on: March 11, 2014, 01:46:29 AM »
Hello.
I can't understand some things.

Take for example the Hidden Object Puzzle Adventure games.
These games contain HUD-Inventory, constantly present on the screen. Each game location is Unity3D scene.
How to make the menu in this case?

Should I create NGUI HUD in each Unity3D scene?
C++ dev. Now unity3D/NGUI newb  :)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: HUD perisistent interface
« Reply #1 on: March 11, 2014, 06:29:49 PM »
Make your UI, save it as a prefab. Place the prefab into each of your scenes. That's one option. Another option is to have some script that will check to see if you already have your UI present and instantiate it from a prefab if not. Last option is to have the first scene have the UI in it, and making the root object as DontDestroyOnLoad, which will make the UI travel from scene to scene.