Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
1
Question by EyEy · Feb 10, 2014 at 11:36 AM · crasheditor-scriptingvisualstudio

Can't open script via Visual Studio (only last 2 days)

I used to use Visual Studio to edit my c# scripts but last 2-3 days troubles appiears.

When I double-click on c# script, it starts to load Visual Studio, load it, and after 1 sec it dissapears (crash, quit), and then Mono opens.

Now I can edit my c# script only via opening my "*-sharp.sln" in Visual Studio and only THEN open my c# scripts in Unity.

Can somebody help with that issue?

Comment
Add comment · Show 2
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 Jix · Feb 10, 2014 at 12:00 PM 0
Share

I got used to always open "*-sharp.sln"... it's not a big deal

avatar image EyEy · Feb 10, 2014 at 04:34 PM 0
Share

Sure, but it's kinda annoying ~_~

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by A_Vrankie · Jul 13, 2018 at 01:37 PM

I had similar problems, whenever I tried to open a script it would open VS but would fail to open the solution or file. I was able to solve it by starting unity with admin privileges.

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 aoun111 · Oct 10, 2019 at 10:51 AM 0
Share

Thanks a lot! You saved me from hours of searching for a solution!

avatar image Kolichikov · Feb 24, 2021 at 08:44 PM 0
Share

As an addition, if you're using unity hub, you need to go to installs, click the the three dots to open your installation in explorer, and then check the "ad$$anonymous$$instrator" option in Compatibility for the exe. After this, you might get an empty error box (red X, but no text) whenever you launch projects from Unity Hub. I was able to fix this by restarting the hub. After this, opening scripts worked from Unity.

avatar image
0

Answer by Nems · Feb 10, 2014 at 12:33 PM

It's a common problem, AFAIK the cause in not really identified. Here is a fix: http://answers.unity3d.com/questions/456799/why-unity3d-cant-open-visual-studio-2012.html

P.-S. You should have had searched for your question before ask a new one ;)

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 EyEy · Feb 10, 2014 at 04:33 PM 0
Share

Doesn't work =/

avatar image Nems · Feb 10, 2014 at 05:26 PM 0
Share

Weird... In fact this problem is gone since I have updated to 4.3. But the problem can came up again (it was the case for me on another computer : 3.5 = problem ; 4.1 = problem gone ; after few weeks = problem again). I found out this problem is raised when something is requested to do on VS start-up (like solution conversion...). In that case Unity do not know what to do, so it launch $$anonymous$$D. Another issue is sometimes VS complains about a not recognized projet type when it opens the solution.

It's been a while since I did not see this problem, so I am not sure of what I am saying... sorry.

avatar image
0

Answer by Nick4 · Feb 10, 2014 at 11:50 AM

Follow these instructions :

  1. Select MonoDevelop as your default script editor Unity.

  2. Restart Unity.

  3. Re-select your external script editor as default.

  4. Double click on any script you have in Unity to open up Visual Studio.

I had the same problem. Seems simple but I took care of it following those. Good luck

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 EyEy · Feb 10, 2014 at 04:32 PM 0
Share

Visual Studio still closes on first second (and after that all another attempts end with opening $$anonymous$$onoDevelop)

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.

Follow this Question

Answers Answers and Comments

24 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

Related Questions

How can you modify the default script templates when creating a new script file on Mac 2 Answers

Unity Crash - Project at stand-still 1 Answer

script works and after unity close doesnt work 0 Answers

How do I remove a ScriptableObject reference after the script has been deleted? 0 Answers

What can cause Unity to crash? 3 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