Hello everyone,
I have a hard time to understand this “problem”.
In my game I am trying to use prefabs with ScriptableObjects (data containers) and while I mostly use simple data type such as string,int,float or Vector2Int etc …
In one situation I created a ScriptableObject of type GameObject called current Map. I drag and drop a prefab of one of my maps into this slot (without any error) and later when it comes to switching levels, I create an instance of another map-prefab and try to store it into my Scriptable object current Map (also without any error).
It seems to work, but when inspecting the ScriptableObject - the serialized field (where the prefab instance should be displayed) just displays type mismatch.
I guess I still have a very basic misunderstanding of this topic… or do instances of prefabs have a different type than GameObject? … please share your thoughts!
Thanks and best regards,
Markus