Hello, I’m as new as they get as far as developing with Unity, and I am currently trying to make a scrolling shooter with the tutorial from this youtube series of videos. () I am using a Mac, and when I create a new script and try to add it to the character it says “Can’t add script Can't add script component 'PlayerControl' because the script class cannot be found. Make sure that there are no compile errors and that the file name and class name match.” What am I doing wrong here? I'm sure this is the most basic of all basic problems. Any and all help would be appreciated.
Did you make sure that the script file name is PlayerControl.cs and the class looks like this: Code (csharp): public class PlayerControl : MonoBehaviour { //etc... }
Rename the script file to PlayerControl whenever you make a new script you should never put any spaces in the name otherwise it gets combined and wont match with the file's name.