Help! New to Unity 2019, Standard Asset for FPSController not working

Hello, could someone please help me figure out how to use the Standard Assets FPSController? All tutorial show you just need to drag the prefab “FPSController” into your scene, but for Unity2019 nothing seems to work.

Once I add the FPSController prefab into my scene, under the “Script” tab it reads “The associated script can not be loaded, please fix any compile error and assign a valid script”. What is the issue? This is a standard asset and I’m new at this, trying to fix it is impossible at my stage.

A lot of forums say to check the class name against the script name, how can I do this?

I also got a bunch of error when I import the “Characters” standard asset, one of them is as per below:

Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs(3,27): error CS0234: The type or namespace name ‘CrossPlatformInput’ does not exist in the namespace ‘UnityStandardAssets’ (are you missing an assembly reference?)

Looks like the standard assets are completely broken for unity2019, maybe it’s best to stay clear of them? I remember back in Unity2015 everything use to work fine.

1 Like

Same problem (and I’m even more of a beginner than you are). When I open the script, I see “No MonoBehaviour scripts in the file, or their names do not match the file name.” I’m going to try to find more out about these types of scripts. If I find anything useful, I’ll reply again.

Sigh. How do we go further in our learning without a usable FPSController?

1 Like

To check if the names are wrong open up the scripts that it displays in the error message and make sure that when it says public class at the top that the name after it Matches the name of the script in the assets folder of your project