Missing Input class??

I am going through the UFO tutorial. Once I created a New Script then opened it up in the editor, the editor doesn’t recognize the Input class or the RigidBody one, How do I add it in since it obviously didn’t load right? With Visual Studio it opens fine but with the MonoDevelop it opens with two errors saying it can not load project with unkown type.3081624--232019--Errors.png

Ugh. I don’t know what’s wrong there, but then I never use Visual Studio and almost never use MonoDevelop — I do all my coding with Script Inspector 3. I really, highly recommend this asset. It is worth every penny and then some — it makes coding in Unity so fast and easy. It makes Unity actually an integrated development environment, and much better in many ways than using a separate code editor.

It will also make the problem you’re having here be simply a non-issue.

P.S. As a guess, the problem might be because you’ve loaded this .csproj in both Visual Studio and MonoDevelop. You don’t actually need those files — try deleting them, and then opening MonoDevelop again. But get Script Inspector 3 anyway, it really will change your life for the better!

2 Likes

I appreciate the advice, I may not be willing to pay out for the Script Inspector yet. I feel like Unity’s MonoDevelop should at least be efficient enough to use right off the bat. I downloaded Unity, all default, Imported the UFO project, but Mono simply doesn’t recognize any of the classes such GetComponent, Input, Rigidbody, etc…

I can’t tell what the problem is, but I can tell you that monodevelop and visual studio both work properly for use with Unity. So, something else must be the issue…

I’ve seen people say good things about the Script Inspector, but I’ve personally always enjoyed using Visual Studio , and even Mono is not bad. That part’s just a matter of personal choice, in my opinion :slight_smile:

If you create a new project, out of curiousity, then try to make a simple script, does that work?