Author Topic: Make a camera mask stop events?  (Read 2338 times)

NuneShelping

  • Guest
Make a camera mask stop events?
« 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Make a camera mask stop events?
« Reply #1 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.