2D Toolkit Forum

2D Toolkit => Support => Topic started by: lionelc on October 30, 2013, 02:29:29 pm

Title: Zoom & HUD
Post by: lionelc 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 :)
Title: Re: Zoom & HUD
Post by: unikronsoftware 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.
Title: Re: Zoom & HUD
Post by: lionelc 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