Error with sample Assets

Everytime i try to play it says this: Assets/SampleAssets/2D/Scripts/Platformer2DUserControl.cs(2,25): error CS0234: The type or namespace name CrossPlatformInput' does not exist in the namespace UnitySampleAssets’. Are you missing an assembly reference?

Here is a screenshot:

Which version of Unity and where did you get Sample Assets from (installed or Asset Store)? You should probably import the CrossPlatformInput package as well from Assets->Import Package menu.

/Rasmus

Please use a title relevant to your problem. Thanks.

I’m using Unity 5 and I got the same problem :frowning:

Same problem here:

The type or namespace name CrossPlatformInput' does not exist in the namespace UnityStandardAssets’. Are you missing an assembly reference?

I had the same issue. Changed the using statement to “using UnityStandardAssets.CrossPlatformInput;” and all is well.

1 Like

Re installe the assets and required asset import

1 Like

I found that the ‘using’ path got confused due to the ‘Standard Assets’ folder having a space in its name. I renamed the folder ‘StandardAssets’ and this error went away.

18 Likes

This worked for me. Thanks

1 Like

Error building Player because script had compiler errors
I do a lot of research on the net but their answer does not bring me the solution, help me please because I have several error building; Assets / StandardAsset / CrossPlatformInput / Scripts / TouchPad.cs (87,26): error CS0246: The type or namespace name `Vector3 'could not be found. Are you missing an assembly reference?

This was the problem for sure! Thanks! Will watch for similar problems in the future.

This worked. Thanks
sampurasun

that works