Centralized default references,Centralized Default references

The Problem is default references not getting applied to the child class
I have a scriptable object called parent which contains another scriptable variable data

[CreateAssetMenu(menuName = "parent Data")]
public class Parent : ScriptableObject
    [SerializeField]Data data;
and I have 100 children who wanna access data and inherits from parent


[CreateAssetMenu(menuName = "child")]
public class child1 : Parent

when I set default reference for the parent class it is getting set

but it is not getting set in the child


Hi @unity_3wBAJtp_fyS-NA, the reason is due to how defaults are assigned. The editor only assigns the default to each individual script to which its assigned (such as Parent), not to inherited classes (such as Child1). You’ll have to assign the default for all inherited classes individually as well.