Author Topic: Convert all UISlicedSprite to UISprite  (Read 7947 times)

NaxIonz

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 70
    • View Profile
Convert all UISlicedSprite to UISprite
« on: October 08, 2013, 09:24:55 AM »
Is there a clean way to switch all my objects using UISlicedSprite to UISprite?

Since UISlicedSprite and UIFilledSprite have been deprecated, I want to convert all those over.

NaxIonz

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 70
    • View Profile
Re: Convert all UISlicedSprite to UISprite
« Reply #1 on: October 08, 2013, 09:55:14 AM »
I just made a helper script that copies off the values of the UISlicedSprite, destroys it, then adds a new UISprite to it.

Seems safe enough.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Convert all UISlicedSprite to UISprite
« Reply #2 on: October 09, 2013, 02:04:29 AM »
That's the way to go. I think it should automatically do that, but I think that was phased out with 3.0 so the tool isn't there anymore. If you made your own, then thumbsup. ;)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Convert all UISlicedSprite to UISprite
« Reply #3 on: October 09, 2013, 08:28:27 AM »
The tool is there. It's a part of the upgrade tools that come with NGUI.

NaxIonz

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 0
  • Posts: 70
    • View Profile
Re: Convert all UISlicedSprite to UISprite
« Reply #4 on: October 09, 2013, 08:39:06 AM »
The tool is there. It's a part of the upgrade tools that come with NGUI.

lol - there's upgrade tools? I totally missed those, then  ;D

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Convert all UISlicedSprite to UISprite
« Reply #5 on: October 09, 2013, 08:41:00 AM »
Did you miss the 2.7 -> 3.0 upgrade video too?