drag and drop issue

Issue #346 closed
Former user created an issue

Heyo. just bought odin, and was trying it out on untiy 2017. I noticed that when trying to drag object previews in the example scenes, I get the stack trace below (instead of the of any of the drag and drop features working). Is there something else I need to be doing to make this work?

No Drag&Drop has been setup. Please UnityEditor.DragAndDrop:StartDrag(String) Sirenix.Utilities.Editor.DragAndDropUtilities:DragZone(Rect, Object, Type, Boolean, Boolean, Int32) (at F:/Sirenix/Sirenix Solution/Sirenix.Utilities.Editor/GUI/DragAndDrop/DragAndDropUtilities.cs:432) Sirenix.Utilities.Editor.DragAndDropUtilities:DragZone(Rect, ItemSlot, Boolean, Boolean) (at F:/Sirenix/Sirenix Solution/Sirenix.Utilities.Editor/GUI/DragAndDrop/DragAndDropUtilities.cs:476) Sirenix.OdinInspector.Demos.RPGEditor.ItemSlotCellDrawer1:DrawElement(Rect, ItemSlot) (at Assets/Plugins/Sirenix/Demos/Sample - RPG Editor/Scripts/Editor/ItemSlotCellDrawer.cs:47) Sirenix.OdinInspector.Editor.Drawers.TwoDimensionalArrayDrawer2:DrawElement(Rect, IPropertyValueEntry1, Context, Int32, Int32) Sirenix.OdinInspector.Editor.Drawers.<>c__DisplayClass7_0:<DrawPropertyLayout>b__0(Rect, Int32, Int32) Sirenix.Utilities.Editor.<>c__DisplayClass23_3:<Create>b__4(Rect) (at F:/Sirenix/Sirenix Solution/Sirenix.Utilities.Editor/GUI/GUITableFactory.cs:257) Sirenix.Utilities.Editor.GUITableCell:Draw() (at F:/Sirenix/Sirenix Solution/Sirenix.Utilities.Editor/GUI/GUITableCell.cs:84) Sirenix.Utilities.Editor.GUITable:DrawTable() (at F:/Sirenix/Sirenix Solution/Sirenix.Utilities.Editor/GUI/GUITable.cs:314) Sirenix.OdinInspector.Editor.Drawers.TwoDimensionalArrayDrawer2:DrawPropertyLayout(IPropertyValueEntry1, GUIContent) Sirenix.OdinInspector.Demos.RPGEditor.ItemSlotCellDrawer1:DrawPropertyLayout(IPropertyValueEntry1, GUIContent) (at Assets/Plugins/Sirenix/Demos/Sample - RPG Editor/Scripts/Editor/ItemSlotCellDrawer.cs:54) Sirenix.OdinInspector.Editor.OdinValueDrawer1:DrawProperty(IPropertyValueEntry1, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyMemberValueEntry.cs:48) Sirenix.OdinInspector.Editor.OdinValueDrawer1:DrawPropertyImplementation(InspectorProperty, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyMemberValueEntry.cs:39) Sirenix.OdinInspector.Editor.OdinDrawer:DrawProperty(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.Drawers.NullableReferenceDrawer1:DrawPropertyLayout(IPropertyValueEntry1, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Attribute Drawers/AssetListAttributeDrawer.cs:464) Sirenix.OdinInspector.Editor.OdinValueDrawer1:DrawProperty(IPropertyValueEntry1, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyMemberValueEntry.cs:48) Sirenix.OdinInspector.Editor.OdinValueDrawer1:DrawPropertyImplementation(InspectorProperty, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyMemberValueEntry.cs:39) Sirenix.OdinInspector.Editor.OdinDrawer:DrawProperty(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.Drawers.ReferenceValueConflictDrawer1:DrawPropertyLayout(IPropertyValueEntry1, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Misc Drawers/PropertyContextMenuDrawer.cs:113) Sirenix.OdinInspector.Editor.OdinValueDrawer1:DrawProperty(IPropertyValueEntry1, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyMemberValueEntry.cs:48) Sirenix.OdinInspector.Editor.OdinValueDrawer1:DrawPropertyImplementation(InspectorProperty, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyMemberValueEntry.cs:39) Sirenix.OdinInspector.Editor.OdinDrawer:DrawProperty(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.Drawers.ReferencePathConflictDrawer1:DrawPropertyLayout(IPropertyValueEntry1, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Misc Drawers/NullableReferenceDrawer.cs:148) Sirenix.OdinInspector.Editor.OdinValueDrawer1:DrawProperty(IPropertyValueEntry1, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyMemberValueEntry.cs:48) Sirenix.OdinInspector.Editor.OdinValueDrawer1:DrawPropertyImplementation(InspectorProperty, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyMemberValueEntry.cs:39) Sirenix.OdinInspector.Editor.OdinDrawer:DrawProperty(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(IPropertyValueEntry, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyListValueEntryChanger.cs:79) Sirenix.OdinInspector.Editor.Drawers.FixUnityNullDrawer1:DrawPropertyLayout(IPropertyValueEntry1, GUIContent) Sirenix.OdinInspector.Editor.OdinValueDrawer1:DrawProperty(IPropertyValueEntry1, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyMemberValueEntry.cs:48) Sirenix.OdinInspector.Editor.OdinValueDrawer1:DrawPropertyImplementation(InspectorProperty, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyMemberValueEntry.cs:39) Sirenix.OdinInspector.Editor.OdinDrawer:DrawProperty(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.Drawers.ReferenceDrawer1:DrawPropertyLayout(IPropertyValueEntry1, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Misc Drawers/NullableReferenceDrawer.cs:112) Sirenix.OdinInspector.Editor.OdinValueDrawer1:DrawProperty(IPropertyValueEntry1, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyMemberValueEntry.cs:48) Sirenix.OdinInspector.Editor.OdinValueDrawer1:DrawPropertyImplementation(InspectorProperty, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyMemberValueEntry.cs:39) Sirenix.OdinInspector.Editor.OdinDrawer:DrawProperty(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:CallNextDrawer(IPropertyValueEntry, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyListValueEntryChanger.cs:79) Sirenix.OdinInspector.Editor.Drawers.PropertyContextMenuDrawer1:DrawPropertyLayout(IPropertyValueEntry1, GUIContent) Sirenix.OdinInspector.Editor.OdinValueDrawer1:DrawProperty(IPropertyValueEntry1, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyMemberValueEntry.cs:48) Sirenix.OdinInspector.Editor.OdinValueDrawer1:DrawPropertyImplementation(InspectorProperty, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Value Entries/PropertyMemberValueEntry.cs:39) Sirenix.OdinInspector.Editor.OdinDrawer:DrawProperty(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.InspectorUtilities:DrawProperty(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.InspectorUtilities:DrawProperty(InspectorProperty) Sirenix.OdinInspector.Editor.Drawers.TabGroupAttributeDrawer:DrawPropertyGroupLayout(InspectorProperty, TabGroupAttribute, GUIContent) (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Drawers/Value Drawers/TypeDrawer.cs:30) Sirenix.OdinInspector.Editor.OdinGroupDrawer`1:DrawPropertyImplementation(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.OdinDrawer:DrawProperty(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.InspectorUtilities:DrawProperty(InspectorProperty, GUIContent) Sirenix.OdinInspector.Editor.InspectorUtilities:DrawProperty(InspectorProperty) Sirenix.OdinInspector.Editor.InspectorUtilities:DrawPropertiesInTree(PropertyTree) Sirenix.OdinInspector.Editor.PropertyTree:Draw(Boolean) Sirenix.OdinInspector.Editor.OdinEditor:DrawTree() (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Children/PropertyValueCollection.cs:541) Sirenix.OdinInspector.Editor.OdinEditor:DrawOdinInspector() (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Children/PropertyValueCollection.cs:533) Sirenix.OdinInspector.Editor.OdinEditor:OnInspectorGUI() (at F:/Sirenix/Sirenix Solution/Sirenix.OdinInspector.Editor/Core/Children/PropertyValueCollection.cs:516) UnityEngine.Experimental.UIElements.IMGUIContainer:DoOnGUI(Event) Uni

Comments (2)

  1. Tor Esa Vestergaard
    • changed status to open

    Drag and drop should just work.

    Before we can help, you need to provide the information asked for during the issue submit process:

    What happened? How can we reproduce it? If screenshots would help explain or demonstrate your issue, please include these. What version of Unity are you using? What version of Odin are you using? (See "Tools > Odin Inspector > About") Do you have Editor Only mode enabled? What operating system are you on?

  2. Log in to comment