I can’t add any scripts to my assets and in-scene objects in a 2018.1.1f1 project. This includes out of-the-box tutorial scripts, as well as empty test scripts generated through Add Component > New Script, ie:
using System.Collections; using System.Collections.Generic; using UnityEngine;
public class test : MonoBehaviour {
// Use this for initialization void Start () {
} // Update is called once per frame void Update () {
} }
All result in the error pop-up “Can’t add script behaviour VisualContainerAsset. The script needs to derive from MonoBehaviour!”
Similar problems are discussed here , suggesting it’s a bug. This seems like a pretty major bug to go unresolved for so long…
What is happening here, and how can I resolve it?