Show nested ScriptableObject in Inspector

Im new to Unity and i want to know if its possible to show nested ScriptableObject (SO) in Inspector. I want to click at the NPCSettings Asset and show all nested SO in the inspector, so that i can everything in one asset.
Is it possible to do that?

For example, i have 4 SO`s that are linked together:

public class NPCSettings : ScriptableObject
{
    public Status status;
    public Task[] tasks;
}
public class Task : ScriptableObject
{
    public float startTime;
    public float endTime;

    public TaskType type;
    public Routine routine;

    public bool isInterferenceTask;
}
public abstract class Routine : ScriptableObject
{
    public AnimatorStateController animatorStateController;

    public abstract void ExecuteRoutine(Animator animator);
    public abstract bool HasRoutineFinished();
}
public class Status : ScriptableObject
{
   //Lots of Attributes
}

Found this

You can make those vanilla classes instead ScriptableObject and give them attribute [System.Serializable]

1 Like