What is it

Drag & Drop in Apex is a workflow for copying values between fields in Apex-driven inspectors by dragging a value from one field and dropping it onto another.

How to use

  • Hold Ctrl (Windows/Linux) or Command (macOS).

  • Left-click a field and drag.

  • Hover another field:

    • If the drop is supported, the target field is highlighted as a valid drop.

    • If the drop is not supported, the target field is highlighted as invalid.

  • Release the mouse button to apply the value to the target field.

Type matching and conversion

If source and target types do not match, Apex may still allow the drop if a conversion exists.

  • Apex ships with a set of built-in converters (for example: numeric/string conversions, object reference conversions, and common Unity types).

  • You can define your own conversions with [DragConverter].

Special case: GameObject → Component

Dropping a GameObject onto a field of a Component type is supported: Apex tries to take the component from the dragged GameObject.

Last updated