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

Getting an incorrect error

$
0
0
Error: 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 Solution 'DataFetcher' ‎(0 projects) Assets/Control.cs 34 Code: DataObject weather = gameObject.AddComponent();

Viewing all articles
Browse latest Browse all 7934


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