Support => NGUI 3 Support => Topic started by: JosephFerano on March 15, 2013, 10:48:07 PM
Title: NGUI replaced my shortcut but I can't find it...
Post by: JosephFerano on March 15, 2013, 10:48:07 PM
Hello, first of all, I updated NGUI to the latest version today (new project) after being on 2.0.8 for the longest time. Love the new features!
Now, I had a shortcut for a custom editor script I created that allowed me to do batch renaming of gameobjects in the scene view using alt + r. Now with NGUI, it attaches a DragDropContainer script onto it. I tried searching for the shortcut but I couldn't find it, how could I edit this shortcut so I can keep alt + r for renaming (since I use that way more)?
Thanks!
Title: Re: NGUI replaced my shortcut but I can't find it...
Post by: Nicki on March 16, 2013, 07:42:09 AM
Search your project for the keycodes that set it. Use monodevelop's Find in Files.
I don't have unity in front of me, but it will be in the editor folder - somewhere.
Title: Re: NGUI replaced my shortcut but I can't find it...
Post by: JosephFerano on March 17, 2013, 11:05:45 PM
Thanks for the reply. I tried that before coming here, that's why I said I couldn't find it. Only my shortcut shows up.
Title: Re: NGUI replaced my shortcut but I can't find it...
Post by: Nicki on March 18, 2013, 03:57:28 AM
Ok, I found it. It's super tricky!
It's in the examples of the different DragDrop scripts, because the AddComponentMenu uses ampersand in the title, unity converts that to a shortcut with ALT.
Example:
[AddComponentMenu("NGUI/Examples/Drag & Drop Surface")]
Change the & to "and" and it doesn't do that any more. Note that it has to be changed for all 4 drag & drop scripts in AddComponent tags.
Title: Re: NGUI replaced my shortcut but I can't find it...
Post by: JosephFerano on March 20, 2013, 01:55:31 AM
Thanks a lot, that did the trick. That should probably be filed as a bug so ArenMook can fix it. Should I do that somewhere?
Title: Re: NGUI replaced my shortcut but I can't find it...
Post by: Nicki on March 20, 2013, 03:32:38 AM
He'll see it here. I might do a push with it fixed, since he's busy with GDC.
Title: Re: NGUI replaced my shortcut but I can't find it...
Post by: ArenMook on March 20, 2013, 11:23:17 AM
Nicki is using his Pro powers to push fixes left and right. :D