Search Unity

2019.3.0b2 Double-clicking on a prefab will open the text editor instead of the prefab scene view

Discussion in '2019.3 Beta' started by Creepgin, Sep 10, 2019.

  1. Creepgin

    Creepgin

    Joined:
    Dec 14, 2010
    Posts:
    268
    Reproducible on a new empty project. Just double-click on any newly-made prefab in the project window and watch your code editor open up the .prefab asset for text editing.

    Surely editing yaml won't be the preferred way of editing prefab going forward right? :)
     
  2. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    2,426
    Not reproducible for me. Empty project, new prefab (the camera to which a script was added). Double-clicking on the prefab opens it in the prefab scene view.

    Maybe you need to take a look at Preferences/External Tools? Try using the "Open by file extension" setting for the script editor. Maybe it'll apply to everything?
     
  3. Creepgin

    Creepgin

    Joined:
    Dec 14, 2010
    Posts:
    268
    Thanks for testing! It should be reproducible if you set External Script Editor to "Visual Studio Code". This used to not interfere with prefab editing before 2019.3.0b2.

    "Open by file extension" does solve the problem. But I would like the preference to stay on "Visual Studio Code" if possible.
     
    EvOne likes this.
  4. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    2,426
    Ah, did you mention anywhere that you had this problem on a Mac?
     
  5. Creepgin

    Creepgin

    Joined:
    Dec 14, 2010
    Posts:
    268
    Oh no, I'm using Windows 10.
     
  6. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    2,426
    I thought Visual Studio Code was for Mac.
     
  7. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    311
    I think you used old version of Visual Studio Code Editor package. Updating to 1.1.2 should solve this issue.
     
    EvOne likes this.
  8. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    668
    Is there easy way to install Visual Studio Code and integrate it with Unity?
     
  9. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    4,223
  10. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    668
    I did that. It's not that simple.
     
  11. EvOne

    EvOne

    Joined:
    Jan 29, 2016
    Posts:
    76
    Exactly! Big Thanks! :)

    But, I don’t understand - by default, I already had the "verified for 2019.3" package version 1.0.7 installed! :rolleyes:
    and with this verified support package it was so much fun:
    "2019.3.0b3 opens the scene in the Visual Studio Code"
     
  12. alex-av

    alex-av

    Joined:
    Sep 11, 2018
    Posts:
    6
    Also reprudicible for me on Unity 2019.3.0a12, 2019.3.0b1, 2019.3.0b2 both Windows and Linux.
    I use and I want use Notepad++ on Windows and Kate on Linux as script editor.

    it isn't reproducible in 2019.1.10f Windows/Linux and earlier windows version (2017.4, 2018.3), something was borken in 2019.3
     
  13. Creepgin

    Creepgin

    Joined:
    Dec 14, 2010
    Posts:
    268
    Oh there is a Visual Studio Code Editor package now. Never crossed my mind to check for that. Thanks guys!

    I'm generally pro-packages/modularity. But I guess this is one of these times it rears its ugly end.

    Hopefully this can get sorted out for people not using one of the supported editors (like @alex-av above)!
     
  14. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    1,521
  15. Creepgin

    Creepgin

    Joined:
    Dec 14, 2010
    Posts:
    268
    Just want to report that using 2019.3.0b3 with Visual Studio Code Editor 1.0.7 (the 2019.3 verified version) will still make prefabs and scenes open up in the text editor. So you still need to make sure you upgrade to Visual Studio Code Editor 1.1.2. (Not sure about other code editors)