Hi I am getting Error when I try to add a CS script to my hacker unity project.
Step 1) Create Script in Assets
Step 2) set name of script to “Hacker.cs” (no quotes)
Step 3) Drag to WM2000 object - and Receive error
“Can’t add script behaviour AssemblyInfo. The script needs to derive from MonoBehaviour”
Environment
Win10
Unity 2018.3.14f1 / Personal
Visual Studio Community 2017 V15.9.7
Your class inside the script is named Hacker.cs, which is not allowed. Rename it to Hacker. Make sure your script is named Hacker and has a file extension named .cs. It must not say: Hacker.cs.cs.
I’ve moved your thread to the “Ask” subforum because you obviously need help with a problem. “Talk” is for, well, talking.