Author Topic: How to keep UITexture in fixed size  (Read 2084 times)

richardwood

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 8
    • View Profile
How to keep UITexture in fixed size
« on: August 25, 2014, 11:48:08 AM »
Hey, I have UITexture, which the content are from DownloadTexture. Should be placed on this avatar box, anchored


when I run, it downloads the image, and placed it on the box as it is so when the size is big, it become like this


How do I make it so that whatever size the downloaded image is, it must not oversize the avatar box,

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to keep UITexture in fixed size
« Reply #1 on: August 26, 2014, 02:26:24 AM »
Comment out line 30 of DownloadTexture.cs (the call to MakePixelPerfect()).