1
\$\begingroup\$

I have opened new scene, deleted camera and imported first person character controller from Standard assets. I placed plane on scene and put first person character controller on plane.

I got this error:

Assets/Standard Assets/Characters/FirstPersonCharacter/Scripts/RigidbodyFirstPersonController.cs(3,27): error CS0234: The type or namespace name CrossPlatformInput' does not exist in the namespaceUnityStandardAssets'. Are you missing an assembly reference?

How to fix it?

\$\endgroup\$
2
  • 2
    \$\begingroup\$ Did you import the CrossPlatformInput class along with the character controller from Standard Assets? By default it will pull everything in, but if you manually checked and unchecked some boxes then it's possible to miss a dependency. Check if it's in your assets folder. If so, you can also try closing Unity, deleting the Library folder, then re-opening the project. This forces a re-import and can sometimes fix cases when the editor is doing something inexplicable. ;) \$\endgroup\$
    – DMGregory
    May 11, 2017 at 15:28
  • \$\begingroup\$ I didn't check that. \$\endgroup\$
    – Wildfire
    May 11, 2017 at 21:11

1 Answer 1

1
\$\begingroup\$

To have the controller working properly, here is what you must import:

enter image description here

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .