I was wondering if it’s possible to save the data in the interactable and reaction collection script as prefabs. That would really help my workflow. If not, is there an alternative?
I tried using: if (GUI.changed) { EditorUtility.SetDirty(interactable); } and Undo.RecordObject(interactable, this.serializedObject.ToString()); inside OnInspectorGUI() but to no avail.
Another solution would be to write a script to remap this data at run time, but that’s not ideal.
Another alternative instead of instantiating prefabs is to configure all the objects you plan on using in advance. Turn them on or off depending on your need. I was wondering maybe the fact that I’m dealing with scriptable objects makes it that it cannot be saved as prefabs?