None of the ways I tried for detecting editor modification detects an array changing when a new item is dragged in.
What I need is to execute code when the array gets modified, and know the original and new state of the array
Full context:
I have a double link situation, one scripts has an array referencing many other scripts. I want to reduce the amount of manual work so I'd like to make the array make the components reference itself automatically.
Which means:
- It needs to know that an element is removed from the array (Including when it gets replaced), to remove the reference
- It needs to know that an element is added to the array (Including when it replaces another), to create the reference
I can circumvent programmatic modifications quite easily, so that won't be the problem