Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: NuneShelping on October 15, 2013, 12:21:57 PM

Title: Make a camera mask stop events?
Post by: NuneShelping on October 15, 2013, 12:21:57 PM
I have a UICamera script attached to my main camera and have been using the notification system to handle a lot of event logic, it is great. On top of this, I have another camera which renders on top of the main camera; this would be where you would render items in the player's hands or other things.

One of those things is a telescope and it creates a circular region in the viewport. As the scope is used, the region changes size and shape via an animation. What I am wondering is if it is possible to stop notifications from being received on objects occluded by the mask? It seems you cannot animate mesh colliders, but the camera-depth system seems ripe for allowing this...

Any ideas?
Title: Re: Make a camera mask stop events?
Post by: ArenMook on October 15, 2013, 02:33:30 PM
Easiest thing to do would be to disable events on the camera by disabling the UICamera. Checking against a depth mask is not possible with NGUI.