Author Topic: Check if UISprite is within screen bounds  (Read 1990 times)

chand81

  • Guest
Check if UISprite is within screen bounds
« on: February 11, 2013, 05:35:16 AM »
Is there a quick way to tell if a UISprite is off screen?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Check if UISprite is within screen bounds
« Reply #1 on: February 12, 2013, 10:24:22 AM »
Quick? No -- you can do it by checking its bounds though: NGUIMath.CalculateRelativeWidgetBounds.