Author Topic: Building user interface together with Uni2D  (Read 2275 times)

dobashihiroyuki

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 2
    • View Profile
Building user interface together with Uni2D
« on: December 14, 2014, 09:13:22 PM »
Hi, I'm now programming on Unity with Uni2D  & NGUI combination. I'm wondering how to make NGUI  User Interface without breaking Uni2D's sprite management system. With NGUI 3.6.0, dropping Panel prefab from NGUI window to the scene window, existing sprite which was controlled by Uni2D was broken. I saw YouTube Video for building User Interface for this issue. This solution is the way to control interaction between NGUI and Uni2D sprites by scripts.

https://www.youtube.com/watch?v=tHavI0gadPg

Is this the only way to making User Inerface? Can NGUI manage native 3DText with Uni2D? Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Building user interface together with Uni2D
« Reply #1 on: December 15, 2014, 12:48:31 PM »
Three problems. First, I don't know Uni2D or how it works. Second, your "gets broken" doesn't describe anything. Perhaps if you explained what actually happens I may have a suggestion? Lastly, I highly doubt Uni2D was meant to support interactions with NGUI, so I am not sure why you are trying to mix them...

dobashihiroyuki

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Building user interface together with Uni2D
« Reply #2 on: December 16, 2014, 09:30:44 PM »
Thanks for your suggestion.

Now I'm developing Angry Bird like 3D quoits game.
The Quoit is 3D object, but Items to catch it are Uni2D sprite which has 3D collider that is featured function of Uni2D.
This game worked well before creating NGUI parts.

First, When I drag and dropped any texture into Scene Window, Uni2D force make sprite.
Uni2D automatically create related resouces and attempt manage and control it all over in Unity.
So, I cannot use native Unity 2D sprites.

Secondary, When I drag and dropped NGUI Button prefab into Scene Window, pre-existing Uni2D sprite
become larger about double and it seems to be moved a little bit right-upper, only in the Game Window.
The sprite in Scene Window seems to be the same as before.

And then, I couldn't recover the size and position. NGUI button works well, though.

According to YouTube video, he uses NGUI script for interaction.
Looking other games using Uni2D, Their User Interface works well and very complex.
What I need to do is only building rich User Interface, regardless of kind of plugin or assets.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Building user interface together with Uni2D
« Reply #3 on: December 17, 2014, 03:17:47 PM »
Yeah... I'm not sure what to suggest for you. I can answer NGUI's questions, but what you're asking sounds like Uni2D, not NGUI.