Author Topic: Possible Bug: UITexture changed to UISprite when atlas is updated  (Read 3689 times)

TapGames

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
I have a couple of UISprites and one UITexture in my scene. This UITexture is used to get a round mask on a profile image.

When I add a new sprite or update a sprite with the "Atlas Maker" the game object with the UITexture component on it get changed to a UISprite component. This is really annoying I need to fix that object every time I update or add a new sprite.

nGui: 3.10.1
Unity: 5.4.0f3

Cheers!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Possible Bug: UITexture changed to UISprite when atlas is updated
« Reply #1 on: September 03, 2016, 01:53:43 AM »
You can either name the texture something that isn't in the atlas, or comment out line 1064 of UIAtlasMaker.cs:
  1. NGUIEditorTools.UpgradeTexturesToSprites(NGUISettings.atlas);

TapGames

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Possible Bug: UITexture changed to UISprite when atlas is updated
« Reply #2 on: September 03, 2016, 03:01:23 PM »
Yes removing the image from the atlas fixed my issue, thanks!