🤔 Unity, huh, how?

🤔

Class and file names

information

In Unity 6 and above this restriction has been lifted.
It remains good practice and convention to file and script names.
See script file names for more information.

The name of your class must be identical to its file name.

You can find the name of your class where your code looks like:

public class ClassName : MonoBehaviour

In this example if your script isn't named Script Icon ClassName, you must rename it to be identical.

warning

This includes capitalisation and spaces.

Notes


My script still cannot be loaded.