Skip to content

SerializableDictionary<GameObject, Type[]> won't serialize. #27

@SenshiSentou

Description

@SenshiSentou

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions