Wiki > SerializableDictionary

RequiredReferences class


This class is only used when a Dictionary has a key type that derives from Unity.Object. The class is needed because a Dictionary can’t handle null for a key, instead it requires a default value. Since the editor already gives a default value, which is considered null for Unity.Object types, the dictionary will use it when adding a new entry instead of null.

This should only be used for Unity.Object inherited classes.

Namespace: RotaryHeart.Lib.SerializableDictionary
Package: Serializable Dictionary

Syntax


public class RequiredReferences : ScriptableObject