I am attempting to assign the Waypoint Circuit script to the Circuit, when I utilize Add Component, it is not listed. When I try to drag and drop it from the assets panel I get the error “Can’t add script component “WaypointCircuit” because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match.”
I understand that they will eventually change the circuit method in a few steps but I would like to understand why this is not working at this junction.
I am using Unity 2019.3.10F1
I have imported the Standard Asset from the store.
It’s most likely due to the filename not matching the class name. Or your class doesn’t inherit from MonoBehaviour. Also make sure there’s no errors in your code. Hope this helps
All I did was download the Unity Standard Assets from the store and install the entire thing. My code has no errors because I did not code anything, it was a download from Unity, perhaps they coded something wrong but I would not no where to begin to look for that.
It seems Standard Assets is not updated to work with Unity 2019, I had to;
Go to SimpleActivatorMenu.cs
Add using UnityEngine.UI; to the begining of the script
The change public GUIText camSwitchButton; to public Text camSwitchButton;
After saving and compiling, I am able to use WaypointCircuit.