Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: GrandOpener on July 24, 2014, 08:45:47 PM
-
Here is my situation. I have a preexisting project with several unity 2d sprite atlases. These atlases were manually created by the artist and exported as large png files. The sprites were then painstakingly outlined in unity by hand using their built-in sprite editor. There are dozens, perhaps hundreds of these sprites, with no record of their dimensions except in the unity .meta files. This project war originally uses completely home-grown solutions for UI, but now we want to move to NGUI.
Now I think I want to move these over to NGUI atlases. Unfortunately, I can't figure out a good way to do that. If there is absolutely no other way I'll try writing a script to parse the unity .meta files and then write out data for the atlas .prefab file, but glancing at the files it looks like they are using different reference points, so that's irritating. I'm hoping that there is some way to salvage this existing work.
Or am I barking up the wrong tree entirely, and I should just be using the Unity 2D Sprite widgets for everything I do?
I have experience with Unity but I'm fairly new to NGUI, so I apologize if I'm missing something obvious.
-
Assuming you are using Unity 4.5+, I would just say stick to Unity 2D sprites. NGUI can draw them the same as its own sprites. ALT+SHIFT+D to make an NGUI 2D sprite, choose the sprite you want.
-
Using 4.5+ and using Unity 2D sprites is working well for me so far. Thanks for the confirmation.