TextusGames / UnitySerializedReferenceUI

The UI for Unity's SerealizedReference attribute. It allows to change the instance type of field right in editor.
MIT License
144 stars 22 forks source link

Could not reach source property name 'targets.Array.data[0]' #4

Open ChiefBreakeverything opened 3 years ago

ChiefBreakeverything commented 3 years ago

First of all, this package is so good, thanks for making it. SerializeReference should work this well straight out of the box...

I get the following error in the console when removing the last element in an array containing instances of classes that feature SerializeReferenceButton for an interface.

"Could not reach source property name 'targets.Array.data[0]' while extracting diffs, the reference does not exist in the source serialized data"

It only seems to happen when removing the last element (index 0).

It's completely harmless I think, doesn't seem to affect anything, but good to know what's happening.

TextusGames commented 3 years ago

Most likely unity's bug. In 2021.1.0f1 I was not able to reproduce that. May be it was fixed.