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 /
avatar image
8
Question by dbchest · Aug 20, 2019 at 01:25 AM · erroreditorscenevisual studiobehavior

Double clicking scene asset opens the asset file in visual studio

I am not sure what I did to activate this feature, but whenever I double click on a scene asset to open that scene for editing in unity, unity instead opens that scene asset in visual studio code for editing. again, I am not exactly sure what happened that caused this but if anyone knows how I can get the editor to return to its default behavior of opening the scene in unity for editing I could really use the advice!

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 mattvnr · Aug 22, 2019 at 07:43 PM 1
Share

Same here! Very annoying, I'm on 2019.2.2f1.

avatar image sacredgeometry · Aug 22, 2019 at 07:46 PM 1
Share

Which OS are you using? Is your default application for that file type just set to VS? If so just right click and open a scene file using Unity on windows and on OS X you can change using Get Info

avatar image Parokonnyy · Aug 23, 2019 at 10:18 AM 1
Share

Visual studio has so many bugs... Check out another good IDE - Rider C#

avatar image Nullmind · Aug 23, 2019 at 09:13 PM 1
Share

Same. 2019.2.2f1.

avatar image depaglia · Aug 24, 2019 at 12:20 PM 2
Share

That just happened to me after upgrading from 2019.2.0 to 2019.2.2. And same issue appeared both on my PC and notebook. At the same time, I had also upgraded from 2019.1.9 to 2019.1.14 and the problem did not show up in this case. So I guess the problem is not related to Windows and file associations, but this particular version of the editor. I even installed 2019.2.1 afterwards, and the problem did not showed up there.

Show more comments

5 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by mattvnr · Aug 29, 2019 at 08:59 PM

Please update the "Visual Studio Code Editor" package through Packet Management. I faced the same issue and updating the package from 1.0.7 to 1.1.0 fixed the issue for me.

Hope that helps.

Comment
Add comment · Show 3 · 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 BeaconDev · Sep 21, 2019 at 09:39 AM 0
Share

This solved it for me, thanks!

avatar image dbchest · Oct 05, 2019 at 07:05 PM 0
Share

thank you very much for your help!

avatar image Rock-Soft · Jan 07, 2020 at 02:41 PM 0
Share

Thank u... This was such an easy fix and was driving me crazy.

So others know, this wasn't just an issue with scenes opening in VSC but basically everything.

avatar image
0

Answer by seanyasno · Aug 24, 2019 at 08:35 PM

The same thing happens to me but it's like that only with VSCode. When I switched back to VS 2017 everything works fine. Also, it happens to be only on Unity 2019.2.2f1.

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

Answer by YetAnotherKen · Aug 24, 2019 at 07:55 PM

There is a option in Edit -> Preferences where you can change your external editor.

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 mattvnr · Aug 25, 2019 at 06:01 PM 0
Share

It happens with .scene files, not with .cs files.

avatar image
0

Answer by starfoxy · Aug 25, 2019 at 12:37 AM

I was having the same issue on Windows, Unity 2019.3.0a12 and Visual Studio Code. I went into Unity preferences and changed the external script editor setting to: "Open by file extension". Scenes open normally now on double click. The first time I double clicked a script, Windows asked me what I would like edit .cs files with. I selected VSCode to always open these types of files. Now everything is back to normal. Was working fine previously on Unity 2017/2018 so not sure what changed.

Comment
Add comment · Show 4 · 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 YetAnotherKen · Aug 25, 2019 at 01:42 AM 0
Share

Well, for me, when I was using VS 2017 then decided to try out VS 2019, I double clicked a script and it opened with VS2019 which surprised me, so I suspect that VS 2019 somehow registers itself with Unity 2019.2 automatically without our consent.

avatar image starfoxy YetAnotherKen · Aug 25, 2019 at 02:24 AM 0
Share

To note, I don't have Visual Studio installed.

avatar image YetAnotherKen starfoxy · Aug 25, 2019 at 05:24 PM 0
Share

Visual Studio Code is just another flavour of their ID$$anonymous$$

avatar image mattvnr · Aug 25, 2019 at 06:01 PM 0
Share

It happens with .scene files, not with .cs files.

avatar image
0

Answer by dbchest · Oct 05, 2019 at 07:04 PM

for any of you who may still be experiencing this problem, the solution for me was to open the package manager and update the vs code editor package to the latest version.

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 Levr01 · May 29, 2021 at 10:38 AM 0
Share

Heave a same problem but see latest version in package manager

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

200 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 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 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

Project and Hierarchy in Editor becoming red 0 Answers

Failed to unpersist: MonoBehaviour ID and then unity destroys our scene. 3 Answers

HingeJoint2D Input connectedAnchor is { NaN, NaN }. in Editor 0 Answers

I'm using Unity 5.4.When I run my Unity project, in the hierarchy window it shows as "filename(Not loaded)". _Also, the project freezes_ 0 Answers

Editor crashes when I press play 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