On Collection Changed not reacting to drag n drop action

Issue #820 resolved
František Holubec created an issue

I am not sure if it is a bug or it is just not implemented yet but when using OnCollectionChangedAttribute, the functions are not called when drag and dropping new element to the list.

Odin 3.0.12

Unity 2020.3.23

Windows 10

Editor Mode - Enabled

Comments (3)

  1. Antonio Rafael Antunes Miranda

    Could you provide a code snippet of what exactly you’re doing, because I wasn’t able to reproduce the issue using your provided versions/settings. 🙂

  2. František Holubec reporter

    I tried to reproduce it again but was not able to. I dont know if it can be related but since my report i had to clear my project cache, so that may have fixed it.

    Anyway the code i got the problem before was:

    [ShowInInspector]
    [PropertySpace]
    [DisableContextMenu]
    [CustomValueDrawer(nameof(CustomValueDrawer))]
    [OnCollectionChanged(Before = nameof(OnCollectionChanged))]
    [ListDrawerSettings(Expanded = true, IsReadOnly = true, OnTitleBarGUI = nameof(OnTitleBarGUI))]
    private List<Object> values = new List<Object>();
    

    All methods used were empty, and on collection changed had only Debug.Log

  3. Antonio Rafael Antunes Miranda

    That doesn’t look like it should break anything and it doesn’t from my tests, but since clearing your project cache fixed it anyway I’ll mark this issue as resolved 🙂

  4. Log in to comment