Hi,
I noticed that any Dict with GameObject as a key cannot serialize arrays as its values. I discovered this first with my own data type, but found that the same held true for <GameObject, string[]> for instance. Using GOs as keys to non-array values works as expected. This behaviour was observed on a Scriptable Object.
When setting these from script:
The values are assigned correctly, but get cleared as soon as Play Mode is entered or anything gets recompiled.
When assigning from the Inspector:
As soon as I try to set the GO key field the entire entry disappears.
Hi,
I noticed that any Dict with
GameObjectas a key cannot serialize arrays as its values. I discovered this first with my own data type, but found that the same held true for<GameObject, string[]>for instance. Using GOs as keys to non-array values works as expected. This behaviour was observed on aScriptable Object.When setting these from script:
The values are assigned correctly, but get cleared as soon as Play Mode is entered or anything gets recompiled.
When assigning from the Inspector:
As soon as I try to set the GO key field the entire entry disappears.