Quantcast
Channel: Questions in topic: "error message"
Viewing all articles
Browse latest Browse all 2891

Help with code, "You are trying to create a MonoBehaviour using the 'new' keyword."

$
0
0
"You are trying to create a MonoBehaviour using the 'new' keyword. This is not allowed. MonoBehaviours can only be added using AddComponent(). Alternatively, your script can inherit from ScriptableObject or no base class at all UnityEngine.MonoBehaviour:.ctor() GameSettings:.ctor() SettingsManager:OnEnable() (at Assets/SettingsManager.cs:17)" I don't know what this means and i don't know how to solve it, someone please help. Picture of my code: ![alt text][1]

Viewing all articles
Browse latest Browse all 2891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>