Display Content of Scriptable Objects RunTime References

Hi there,

I am currently working on a project where I use ScriptableObjects not only for immutable data, but also for temporary RunTime references. When I now want to view the content of these references in the respective ScriptableObject in the editor, the content is only displayed with “Type Mismatch”. However, I can use these references without any problems (as discussed e.g. here: Question about the data storage of ScriptableObject at runtime ).

Nevertheless it could be useful to see the RunTime contents of the ScriptableObjects for debugging. Is there a work-around to display these contents, e.g. within a monobehavior class, during runtime?

Thanks a lot in advance! :slight_smile:

“Type Mismatch” is incredibly misleading and is basically the catch-all message for “Unity can’t serialize this”.

You could have a custom inspector that processed non-Unity-serialized data and displayed it.

1 Like