Author Topic: Changing UV coords in UISprite but not in UIAtlas.Sprite  (Read 4003 times)

Sephiroth73003

  • Guest
Changing UV coords in UISprite but not in UIAtlas.Sprite
« on: June 28, 2012, 06:10:26 PM »
I'm creating a basic meter class and for it to preserve the proper look on non-rectangular images I need to scale the UV's when I scale the Sprite.

Thing is outerUV is read only and none of the UV related functions allow me to pass the uv's with them. I can access the UIAtlas.sprite uvs but I would prefer to keep the atlas untouched so if someone else on my team messes with the script atlas' don't get messed up. I'm sure the solution is pretty simple, but I can't find the proper function.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Changing UV coords in UISprite but not in UIAtlas.Sprite
« Reply #1 on: June 29, 2012, 02:57:52 AM »
Sprites don't offer you a way to modify UVs. If you want to work with UVs, create a new widget type (use UITexture as an example).