Author Topic: NGUI Toolbar  (Read 3524 times)

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
NGUI Toolbar
« on: May 09, 2014, 11:24:32 AM »
I think this is missing to NGUI.

Something similar to Extras Toolbar.

To have all the actions included in the NGUI tab in this window. I think for being an UI toolkit should have an UI toolbar.


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Toolbar
« Reply #1 on: May 09, 2014, 09:48:08 PM »
It would be even better if I could drag prefabs into this window creating a handy toolbar of UI elements I can drag in... I wonder if it's possible to achieve without modifying Unity...

jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: NGUI Toolbar
« Reply #2 on: May 12, 2014, 11:04:52 AM »
To me it works just with the same buttons like the NGUI tab, but the prefabs idea sounds good.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Toolbar
« Reply #3 on: May 13, 2014, 07:22:16 AM »
Done.


jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: NGUI Toolbar
« Reply #4 on: May 13, 2014, 09:29:05 AM »
woahhh!
Looks awesome!  ;D ;D

When we can get this?

r.pedra

  • Full Member
  • ***
  • Thank You
  • -Given: 7
  • -Receive: 20
  • Posts: 131
    • View Profile
Re: NGUI Toolbar
« Reply #5 on: May 13, 2014, 09:34:53 AM »
OMG It will be so usefull  :o

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI Toolbar
« Reply #6 on: May 13, 2014, 09:53:27 AM »
It's in the Pro repository now. I'll be making a new NGUI tutorial video this week, so I'll show it in action.

Fun fact: it was a feature I really wanted to add to uGUI, but I lacked the expertise/know-how, and others weren't sure how to do it either I guess, so it was cut. Last night (well technically still this morning for me since I've been up since yesterday)... but anyway... last "night" I had an idea, and sat down to do it. 12 hours later, voila.

I have to admit it's actually incredibly useful... I made sure that it's not limited to NGUI, and supports everything that has a preview in Unity and evaluates to a game object (read: prefab). I could adjust it to support more than that if I wanted -- audio clips for example, but we'll see.

As it stands right now, when you drag something onto the bar, it will prompt to you to create a prefab (unless it's already a prefab). It will create a preview for it, and from that point onward you can use it like any other prefab and then some -- drag it off that bar into the scene, drag it around to re-arrange the prefabs, remove, insert new ones in-between of others, etc.

The fact that it supports preview of NGUI widgets is a neat bonus. It will automatically search your project for prefabs named "Control -" and will add them to the toolbar on startup. This is what it looks like when imported into a default NGUI project: