I am surprised that question haven't been asked before. Or my search skills are horrible (Probably).
I want to know if there is a shortcut or anything to pick objects from the scene view instead of having to using the "Select GameObject" dialog or to drag it from the Hierarchy.
This is really frustrating when you have a level with lot of doors and triggers.
asked Mar 31 '12 at 09:20 PM
Unfortunately there's no such function, but you can work with two inspector windows if it'S really a big scene. That way you can select your object with the script so you see the variable in the inspector and then lock one inspector so it stil shows the script even when you select another object.
Now you can simply click on another object in the scene view so it get highlighted in the projectview and you can drag it from the project view to the variable (which is still visible in the locked inspector window)
To lock an inspector window you just have to click the little pad-lock-icon at the top of the window.
This is also the only way to assign a specific component to another object when there are more than one of these components on this object.
I've just created an EditorWindow which allows you to pick the object under the cursor in the scene view. The picked object is shown in the custom window and you can start any kind of a drag & drop operation from there. It supports a "history stack" of the last picked objects if you want ;)
This script has to be named "SceneViewObjectWindow.cs" and should be placed in "Assets/editor/".
Just open the window via the Tools menu and dock it near the inspector window. To pick an object i've assigned the hotkey "ALT + S" (%s). You can modify it if you want a different hotkey (See MenuItem for more information).