'global::' MouseLook definition

hello,

i’ve been trying to work on a unity project on my laptop which i had started on my main computer. i exported the package with all assets.

i have run into a problem involving the MouseLook: when attempting to run the game, i receive the console message:

error: the namespace ‘global::’ already contains a definition for ‘MouseLook’

i had been working with an xbox360 gamepad, got it to work great on my main computer. it must be something to do with that, but i can’t figure it out. any suggestions?

thanks!

You probably already have another script named MouseLook.

You have to rename one of them. (If it is a C# script you also have to change the name of the class)

1 Like