Author Topic: How to check on runtime if sprite is in Atlas?  (Read 5917 times)

luisdiv

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
How to check on runtime if sprite is in Atlas?
« on: May 10, 2013, 06:58:45 PM »
Hi,

Is there any way to check on runtime if sprite is in a specific Atlas?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to check on runtime if sprite is in Atlas?
« Reply #1 on: May 11, 2013, 01:08:21 AM »
atlas.GetSprite(...) != null

luisdiv

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Re: How to check on runtime if sprite is in Atlas?
« Reply #2 on: May 16, 2013, 05:51:49 PM »
thanks!