Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • 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 /
  • Help Room /
This question was closed Feb 10, 2017 at 10:51 PM by FortisVenaliter for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by Frostycane · May 28, 2016 at 06:25 AM · unity 5monodevelopscript errormonobehaviourcs0103

Error CS0103 UnityEngine does not exist

I recently installed Unity 5.

Whenever I create a new C# script, and attempt to edit it, MonoDevelop gives these two errors:

"error CS0103: The name 'UnityEngine' does not exist in the current context"

"error CS0103: The name 'MonoBehaviour' does not exist in the current context"

I tried uninstalling, deleting all remaining files, and reinstalling. But the problem persists.

How would one go about solving this problem?

Comment
Add comment · Show 1
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 Frostycane · May 29, 2016 at 10:30 AM 0
Share

The screenshots show exactly what I just told you. But alright, have two. The first screenshot shows the entirety of a new script, and the second screenshot shows one of the errors.

alt text

alt text

firstscript.png (39.2 kB)
secondscript.png (40.5 kB)

3 Replies

  • Sort: 
avatar image
10
Best Answer

Answer by EEDemir · Jun 24, 2016 at 10:24 PM

In Monodevelop ; Go Project > Assembly CSharp Options > Build > General , and check if the correct Framework is setup. When i change it from 3.5 to 4.5.2 or 4.6.1 it worked out for me, but sometimes when i restarted the Monodevelop it again automaticly changed back to 3.5

Comment
Add comment · Show 2 · Share
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 hypnoslave · Jul 04, 2017 at 05:35 PM 0
Share

Hey there, this did not fix the problem for me. in case someone finds this thread:

I deleted my "Assembly-CSharp" files in my project directory, and reloaded my project. I then right clicked on the CSharp.csproj and opened it with monodevelop. That gave me an error, surprisingly... but I opened it again from monodevelop's recent files and it said that it loaded the solution. After that, this problem went away.

avatar image HeleneFalk · Aug 07, 2017 at 09:54 PM 0
Share

Just want to say thanks for the answer. It solved my problem!

avatar image
2

Answer by VortexAlive · Nov 27, 2016 at 10:25 PM

This will fix your problem:

In Monodevelop ; Go Project > Assembly CSharp Options > Build > General , and check if the correct Framework is setup. Change it from 3.5 to 4.5.

I had this problem as well, though it didn't seem to affect anything. Simply changing the framework to 4.5 has fixed it for me.

Comment
Add comment · Show 1 · Share
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 DiamondObsidianPearlEmerald · Aug 08, 2017 at 09:00 PM 0
Share

Thanks! I was totally clueless about my issue up until now.

avatar image
0

Answer by danam · Feb 10, 2017 at 09:34 PM

I had this same issue. Every suggestion did not resolve it, even rolling back earlier commits, the problem persisted. Deleted all sln files, no change. The only thing that worked is using Visual Studio instead of monodevelop.

Comment
Add comment · Share
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

Follow this Question

Answers Answers and Comments

94 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image 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

Error cs0103: the name unityEngine don't exist in the current context 2 Answers

error CS1041: Identifier expected 1 Answer

Start animation with different game object 0 Answers

[SOLVED] - Unity 2017, Monodevelop 5.9.6, How to generate method/function definition from just a method call? 1 Answer

Using interfaces and Monobehaviour behaviours 0 Answers


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