Smart Drag & Drop
One of the most powerful features in FuzzyIDE is the seamless integration with the Unity Editor’s hierarchy and asset management via the Smart Drag & Drop Engine.
How to Use
Drag one of the following into a C# script open in FuzzyIDE. The caret follows the mouse so you can see where the reference goes.
- A GameObject from the Hierarchy
- A prefab from the Project window
- A component (drag its header from the Inspector)
FuzzyIDE suggests a variable name (player for a GameObject named Player, myRigidbody for a Rigidbody component). Confirm or change it in the name popup.
Reference Types
External Reference (Auto-Assign)
Adds a serialized field of the right type to the class. After Unity has compiled the change, FuzzyIDE assigns the dragged object to that field on the instances of the script in the open scenes – no manual dragging into the Inspector.
Local Reference (GetComponent)
Only for components: adds a private field and assigns it with GetComponent<T>() in Awake() (the method is created if the class doesn’t have one yet), instead of going through the Inspector.
Settings
Preferences › Code IDE › Behaviors › Smart Drag & Drop:
| Option | Behavior |
|---|---|
ContextMenu (default) | A menu asks which reference type to create. |
AutoAssign | Always creates an External Reference without asking. |
This feature drastically reduces boilerplate code and the time spent manually typing variable declarations and wiring references in the Inspector.