Author Topic: UISprite with different aspect ratio in table cell  (Read 1993 times)

rockafnan

  • Guest
UISprite with different aspect ratio in table cell
« on: March 12, 2013, 01:50:06 AM »
Hi, I've a table with cell containing a UISprite. I've different sprites of different aspect ratio. I've managed to keep the height same, how can I keep the aspect ratio of sprite same as Altas maker trim alpha while adding it to Altas.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: UISprite with different aspect ratio in table cell
« Reply #1 on: March 12, 2013, 09:35:46 AM »
Just call MakePixelPerfect() on the sprite when you add it to your cell and it should be fine.