Search Unity

With new UI, separate scenes, or just separate panels?

Discussion in 'UGUI & TextMesh Pro' started by Fattie, Nov 19, 2014.

  1. Fattie

    Fattie

    Joined:
    Jul 5, 2012
    Posts:
    476
    This is basically a dupe of this question

    http://forum.unity3d.com/threads/scenes-vs-canvases-vs-panels.279890/#post-1846982

    later I put some thoughts on the matter there ...

    -------------


    What do you guys do ..

    Say you have a menu of five buttons, each one leads to one of five control displays.

    There's no game content, it's all UI at this point.

    Would you make separate scenes for each controls screen? or, just use separate panels

    Any thoughts?

    What did you Unity dudes "meant" to be done?

    Cheers .....
     
    Last edited: Nov 20, 2014
  2. Fattie

    Fattie

    Joined:
    Jul 5, 2012
    Posts:
    476
    Hmm I realised this isn'r really covered in the UI Demo .. any thoughts ?
     
  3. rakkarage

    rakkarage

    Joined:
    Feb 3, 2014
    Posts:
    683
    i think it is covered by the 3dmenu scene?
    they did it all in one scene and so did i...
     
  4. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,208
    Separate panels, all in one scene, then just enable/disable on the fly. I suppose if you have different people working on the UI elements, you might want a different scene, but then I would load them all into the same scene myself anyway.
     
    Deleted User likes this.
  5. Fattie

    Fattie

    Joined:
    Jul 5, 2012
    Posts:
    476
    Rakkarage - gotchya, they do demo it in the "3D scene".

    Indeed you just have to fool around and disable them.

    It seems incredibly more sensible to me to use different canvasses -- but that creates the problem that, simply, they "draw on top of each other" in the editor screen.

    (As far as I know, you can't move the "nominal" position on the editor screen, of a canvas. So they all stack up.) (I guess, you could use a separate gui camera for each one, to move them around on the editor that way.)

    Hmm, thanks for the thoughts guys...

    I stumbled on this earlier question, I put some thoughts there too http://forum.unity3d.com/threads/scenes-vs-canvases-vs-panels.279890/#post-1846982
     
    Last edited: Nov 20, 2014
  6. Jaimi

    Jaimi

    Joined:
    Jan 10, 2009
    Posts:
    6,208
    Disable the ones that you are currently working on.
     
    vyshan likes this.
  7. Fattie

    Fattie

    Joined:
    Jul 5, 2012
    Posts:
    476
    that's a lousy way to work man! :) it's like in the old days on iOS when you had stuff stacked up on views, so you would turn off or "slide over" the ones you were not working on. (not they have container views, thank goodness)
     
    AbleArcher likes this.
  8. pesetskyps

    pesetskyps

    Joined:
    Jan 12, 2015
    Posts:
    4
    Here is the great tutorial on organizing Panels
     
    jberwick likes this.