Hello Guest

Author Topic: Zoom & HUD  (Read 3775 times)

lionelc

  • Newbie
  • *
  • Posts: 4
    • View Profile
Zoom & HUD
« on: October 30, 2013, 02:29:29 pm »
Hello,

I'd like to use the new Zoom capabilities but I have a HUD. The doc says "It is recommended to use a second camera for HUDs"
My main cam runs script that follow the main character.
My HUD should have buttons and other stuffs.
How can I deal with 2 cams ?

Thx for your help :)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Zoom & HUD
« Reply #1 on: October 30, 2013, 07:31:22 pm »
2 Cameras will make this a lot easier. Check UI demo 3 - it uses 2 cameras. You want to configure them correctly so each camera can only see the parts its meant to using Unity layers.

lionelc

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Zoom & HUD
« Reply #2 on: October 30, 2013, 11:09:32 pm »
thx for your answer :)
I spent 1H to understand the demo, it was fine in preview's windows, but my main cam was the only cam which worked at runtime !
I finally found that my Depth on UIcam was wrong ! 

All is fine now
thx