Save Prefabs dont work

hey, can we help me ?

You are trying to replace or create a Prefab from the instance ‘Level’ that contains the script ‘level’, which does not derive from MonoBehaviour. This is not allowed.
Please change the script to derive from MonoBehaviour or remove it from the GameObject.
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

I do thing as always with other prefabs… level.cs looks ok same as in lection, and gameobject too …

Hi Roman,

Welcome to our community! :slight_smile:

What did you assign to the variable? A prefab with the Level script attached or the Level script?

This topic was automatically closed after 24 hours. New replies are no longer allowed.

Privacy & Terms