We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5495d00 commit b0aa931Copy full SHA for b0aa931
Editor/Drawers/ReferenceDrawer.cs
@@ -188,7 +188,11 @@ private void HandleDragPerform()
188
ReferenceModeProperty.enumValueIndex = (int)ReferenceMode.Raw;
189
break;
190
case DragAndDropMode.Unity:
191
- UnityReferenceProperty.objectReferenceValue = DragAndDrop.objectReferences[0];
+ if(DragAndDrop.objectReferences[0] is GameObject go)
192
+ UnityReferenceProperty.objectReferenceValue = go.GetComponent(GenericType);
193
+ else
194
+ UnityReferenceProperty.objectReferenceValue = DragAndDrop.objectReferences[0];
195
+
196
ReferenceModeProperty.enumValueIndex = (int)ReferenceMode.Unity;
197
198
case DragAndDropMode.None:
0 commit comments