Author Topic: Need help for 2 camera and 2 GUI  (Read 2566 times)

atomfreak

  • Guest
Need help for 2 camera and 2 GUI
« on: July 06, 2012, 07:29:17 AM »
Hello
Here is my problem.
I have a scene with two cameras. What I am trying to do is that each camera can see a different GUI. For example on my camera (1) it's a GUI for my menu. For Camera 2 it is a completely different GUI. The thing is that my 2 GUI is displayed on each camera. I tried to give a Tag on each panel and assign the right one in the culling mask of my camera  but both GUI still visible.
I also tried to set up two cameras in my 2D UI by assigning each camera their own tag but without success too.
Thanks for your help

Fbary

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 25
    • View Profile
Re: Need help for 2 camera and 2 GUI
« Reply #1 on: July 06, 2012, 08:11:26 AM »
What you mean with "completely different"? Are these 2 GUIs 2D with same atlases? You can use just 1 ortographic camera, with multiple anchors. You can have a static menu somewhere in your screen space, and some draggable windows, all using just different anchors. O.o

However let's see what Aren has to say =P


Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Need help for 2 camera and 2 GUI
« Reply #2 on: July 06, 2012, 08:19:05 AM »
Make two Unity layers. Set your UI cameras to only show the relevant layer. Remember to put all your UIwidgets in their respective layer.

atomfreak

  • Guest
Re: Need help for 2 camera and 2 GUI
« Reply #3 on: July 06, 2012, 08:37:34 AM »
Fbary
I got only 1 atlas

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Need help for 2 camera and 2 GUI
« Reply #4 on: July 06, 2012, 10:50:53 AM »
What Nicki said. :P