0
\$\begingroup\$

I started in Unity few days ago and made a cube with a tank control style. Now I'd like to create controls similar to 3D fighting games (Gunz, Blade Symphony, …): Control body direction with the mouse and walk with WASD.

However, the Camera is giving me a error called "Behaviour missing" each time I try, with all the cameras scripts I saw. I think that is a error with tagging the character movement in the camera, but I don't know how to do that.

What might be the problem?

\$\endgroup\$
  • \$\begingroup\$ Does the error mention anything else? Why is that first bit about controls relevant when the issue you're having is with the camera? (Does it only happen when you try to make it move with the mouse?) \$\endgroup\$ – Anko Apr 21 '15 at 22:31
2
\$\begingroup\$

It's not wrong with the camera or with the content of any script you might have. This error occurs when you have a script attached to a gameobject and you deleted, moved or renamed it outside of unity. Unity can't find the related script for the MonoBehaviour component.

If you want to rename or move a script do it always in Unity. To solve your error, just find the component that references this missing script and drag the script that you might have moved onto the component.

\$\endgroup\$

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.