type mismatch, prefab into scriptable object
Hello everyone,
I have a hard time to understand this "problem". In my game I am trying to use prefabs with scriptable objects (data containers) and while I mostly use simple data type such as "string","int","float" or "vector2Int" etc ... in one situation I created a scriptable Object 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 scriptable object - the serialized field (where the prefab instance should be displayed) just displays "type mismatch".
I guess I still have a very basic missunderstanding of this topic.. or do instances of prefabs have a different type than GameObject? .. please share your thoughts! Thanks and best regards, Markus
Your answer
