I’m having issues when I create a script and it is not renaming the class name within to match the script name in Unity. For whatever reason, all my new C# scripts come up as “NewBehaviourScript” as the class name regardless of what I name the actual file. Is there something I can do to change how the script is created to allow the name of the script to change the class name inside of the script?
I edited the original script template, but my brother did as well and his works just fine. The only thing I changed was that I added a return before the opening { for example:
instead of
void Start() {
}
I changed it to
void Start()
{
}
I changed the script template to accommodate my style preferences.