So I have this small class called StoryTrigger:
namespace VisualNovelScripting
{
[System.Serializable]
public class StoryTrigger
{
[SerializeField] public string triggerName;
public bool value;
public StoryTrigger(string name, bool value = false)
{
this.triggerName = name;
this.value = value;
}
}
}
And I want to make a ScriptableObject with a list of StoryTrigger objects that could add, remove and edit elements right on the unity inspector.
I assumed that if the StoryTrigger had the [System.Serializable]
modified it should work. And It kind of works but looks like this on the inspector:
I want to know if there's something I am doing wrong or something I could do better so it doesn't look this weird on the inspector or if this is an issue on the unity editor.