This is my super simple script in unity:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class script : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
Debug.Log("Something");
}
// Update is called once per frame
void Update()
{
}
}
I attached the script to main camera:
After I run the unity game, the console is empty, meaning that the script won't run.
This is just a new project I created to test this because in my original project unity spontaneously stopped executing scripts. I uninstalled the old version (2019) and installed a new version (2020) as well as Visual Studio (even if it wasn't necessary), but didn't make a difference.


scriptas name for your components ;)