• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Ryalde94 · Feb 19, 2013 at 01:26 AM · c#monodevelopgame developmentunlinked

I'm getting an error in MonoDevelop (the type or namespace could not be found). Help? **EDIT** resolved

I'm using Unity and MonoDevelop running Windows 8. What I'm working on is a sample from a book, "Unity 3.x Game Development Essentials" and I'm at the part where I am scripting C# code. I installed MonoDevelop separate from Unity, which I think is the problem, because I am receiving compile errors stating, "the type or namespace name 'UnityEngine' could not be found (are you missing a using directive or an assembly reference?)" Here is the code, with errors on lines 1, 4, and 5.

 using UnityEngine;
 using System.Collections;
 
 public class Shooter : MonoBehaviour {
     public RigidBody bullet;
     public float power = 1500f;
     public float moveSpeed = 2f;
     void Update () {
     }
 }
 
Comment
Add comment · Show 6
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Ryalde94 · Feb 19, 2013 at 01:26 AM 0
Share

$$anonymous$$y main problem is that I do not know how to make them work together such that the errors go away.

avatar image barinelg · Feb 19, 2013 at 05:09 AM 0
Share

Are the compilation errors in Unity or $$anonymous$$onoDevelop? You can technically compile in both, so want to be sure.

avatar image Ryalde94 · Feb 19, 2013 at 06:18 AM 0
Share

I just solved the problem by installing an older version of Unity. Thanks for the feedback though! The issue was that $$anonymous$$onoDevelop wasn't compiling THROUGH Unity (therefore $$anonymous$$onoDevelop had runtime errors that were because of the lack of connection to Unity), and I read up a bit and found out that $$anonymous$$onoDevelop could only be used alongside Unity with either a complete package installation or extreme modification.

avatar image barinelg · Feb 19, 2013 at 05:08 PM 0
Share

No problem. :) Something to note is that you can have both normal $$anonymous$$onoDevelop and Unity's version installed on the same machine. I do it on both my $$anonymous$$ac and PC. Unity's $$anonymous$$onoDevelop is installed in the same directory of Unity to prevent installation overwrites. Also, to discern which version is which the $$anonymous$$onoDevelop icon will have the Unity icon in the bottom-right corner. If you want to give a newer version of Unity a shot, keep the above in $$anonymous$$d and see if it works for you. If it does work, I can rewrite this as an answer. :)

avatar image dubbreak · Feb 19, 2013 at 10:12 PM 0
Share

If you have solved this you should close it (not just change the title).

You should have: edit | close | delete | more \/ below your question.

avatar image Benproductions1 · Feb 19, 2013 at 10:37 PM 0
Share

Please close this ins$$anonymous$$d of changing the title

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

"using Android" doesn't recognizable on Unity 1 Answer

Multiple Cars not working 1 Answer

Distribute terrain in zones 3 Answers

Object deformation on activat 0 Answers

Smooth transition from Camera1 to Camera2? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges