Author Topic: Best practices suggestion: One scene or more?  (Read 3068 times)

DannoEterno

  • Guest
Best practices suggestion: One scene or more?
« on: March 14, 2013, 12:33:24 PM »
Hi, im a game programmer from Italy and i was stunned from your NGUI: is simply amazing and tomorrow my office will buy it.

Just for start to thinking about performance and size of our app, i was asking myself if was better have all the GUI in one scene  (and hide/reveal the various page) and the game in another one or maybe having one scene per GUI's page. I've read a lot about this argument but i wasn't able to find anything that can seriously help, from what i see all depends from the programmer's philosophy.

So sorry, because maybe this question is pretty old, but NGUI works better in one of this ways? Or maybe there is another way to work that you want suggest?

Thanks,
Max

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Best practices suggestion: One scene or more?
« Reply #1 on: March 14, 2013, 12:47:12 PM »
I'm working with all the screens in just 1 scene. I don't know if it's the best, it's a little messy, but the transitions are smooth.

DannoEterno

  • Guest
Re: Best practices suggestion: One scene or more?
« Reply #2 on: March 15, 2013, 03:55:10 AM »
Hi jeldrez, thanks for your reply!

So you hide or disable your gui's elements?

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: Best practices suggestion: One scene or more?
« Reply #3 on: March 15, 2013, 08:38:46 AM »
I mostly used NGUITools.SetActive(GameObject, true) but I'm not sure if that is going to be at the end of the project. I'm just new on NGUI and we are just starting the project, so I'm also testing how to do that, but probably I'll used that with some animations.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Best practices suggestion: One scene or more?
« Reply #4 on: March 16, 2013, 09:24:15 AM »
The gui will generally not take up much memory, so don't worry too much about that unless you go in crazy atlas sizes.

I recommend just having the UI in a prefab, so you can load it wherever - instead of having to change to the "UI scene".