Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: NaxIonz on October 08, 2013, 09:24:55 AM

Title: Convert all UISlicedSprite to UISprite
Post by: NaxIonz 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.
Title: Re: Convert all UISlicedSprite to UISprite
Post by: NaxIonz 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.
Title: Re: Convert all UISlicedSprite to UISprite
Post by: Nicki 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. ;)
Title: Re: Convert all UISlicedSprite to UISprite
Post by: ArenMook on October 09, 2013, 08:28:27 AM
The tool is there. It's a part of the upgrade tools that come with NGUI.
Title: Re: Convert all UISlicedSprite to UISprite
Post by: NaxIonz 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
Title: Re: Convert all UISlicedSprite to UISprite
Post by: ArenMook on October 09, 2013, 08:41:00 AM
Did you miss the 2.7 -> 3.0 upgrade video too?