Author Topic: NGUI replaced my shortcut but I can't find it...  (Read 5840 times)

JosephFerano

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 27
    • View Profile
NGUI replaced my shortcut but I can't find it...
« 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!

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI replaced my shortcut but I can't find it...
« Reply #1 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.

JosephFerano

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 27
    • View Profile
Re: NGUI replaced my shortcut but I can't find it...
« Reply #2 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.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI replaced my shortcut but I can't find it...
« Reply #3 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:

  1. [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.

JosephFerano

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 27
    • View Profile
Re: NGUI replaced my shortcut but I can't find it...
« Reply #4 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?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: NGUI replaced my shortcut but I can't find it...
« Reply #5 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI replaced my shortcut but I can't find it...
« Reply #6 on: March 20, 2013, 11:23:17 AM »
Nicki is using his Pro powers to push fixes left and right. :D