🤔 Unity, huh, how?

🤔

Script loading issues

Can't add script component 'Foo' because the script class cannot be found.
Make sure that there are no compiler errors and the file name and class name match.
'Foo' is missing the class attribute 'ExtensionOfNativeClass'!
The script don't inherit a native class that can manage a script.  

Troubleshooting steps

Make sure your script is saved, then follow these steps:

  1. Check class and file names.
  2. Resolve Console errors.
Can't add script behaviour 'Foo'. The script needs to derive from MonoBehaviour!
  1. Check for correct Unity inheritance.
The script is an editor script.
  1. Ensure your script isn't in an Editor context.
    1. Check for Editor folders.
    2. Check for Editor Assembly Definitions.
  2. Restart Unity.
  3. Reimport the project.