Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Visual Studio Editor package

Discussion in 'Package Manager' started by APSchmidt, Oct 15, 2019.

  1. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    2,776
    The Visual Studio Editor package is no longer in use but it's still installed in the Creator Kit - Beginner Code tutorial. There is a possibility that it's still present in other projects and tutorials.

    Just saying...

    About packages in general, I just spent half an hour removing a bunch of unused packages in the same tutorial.
     
    Last edited: Nov 9, 2019
  2. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    365
    One tip:
    Remove packages directly from the manifest file. Don't bother with the Package Manager UI. Once you click back into Unity it will resolve all your changes in one go.
     
  3. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    2,776
    Uh, no, this seems to be a bad idea. The content of the manifest doesn't reflect the packages that are installed in the projects.

    Here is the manifest for the Creator Kit - Beginner Code and below the screen capture of the packages that are actually installed. Most of the packages I deinstalled from the package manager are still listed in the manifest.

    Code (CSharp):
    1. {
    2.   "dependencies": {
    3.     "com.unity.cinemachine": "2.3.4",
    4.     "com.unity.package-manager-ui": "2.2.0",
    5.     "com.unity.postprocessing": "2.1.7",
    6.     "com.unity.render-pipelines.lightweight": "6.9.1",
    7.     "com.unity.textmeshpro": "2.0.1",
    8.     "com.unity.timeline": "1.1.0",
    9.     "com.unity.ugui": "1.0.0",
    10.     "com.unity.modules.ai": "1.0.0",
    11.     "com.unity.modules.androidjni": "1.0.0",
    12.     "com.unity.modules.animation": "1.0.0",
    13.     "com.unity.modules.assetbundle": "1.0.0",
    14.     "com.unity.modules.audio": "1.0.0",
    15.     "com.unity.modules.cloth": "1.0.0",
    16.     "com.unity.modules.director": "1.0.0",
    17.     "com.unity.modules.imageconversion": "1.0.0",
    18.     "com.unity.modules.imgui": "1.0.0",
    19.     "com.unity.modules.jsonserialize": "1.0.0",
    20.     "com.unity.modules.particlesystem": "1.0.0",
    21.     "com.unity.modules.physics": "1.0.0",
    22.     "com.unity.modules.physics2d": "1.0.0",
    23.     "com.unity.modules.screencapture": "1.0.0",
    24.     "com.unity.modules.terrain": "1.0.0",
    25.     "com.unity.modules.terrainphysics": "1.0.0",
    26.     "com.unity.modules.tilemap": "1.0.0",
    27.     "com.unity.modules.ui": "1.0.0",
    28.     "com.unity.modules.uielements": "1.0.0",
    29.     "com.unity.modules.umbra": "1.0.0",
    30.     "com.unity.modules.unityanalytics": "1.0.0",
    31.     "com.unity.modules.unitywebrequest": "1.0.0",
    32.     "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    33.     "com.unity.modules.unitywebrequestaudio": "1.0.0",
    34.     "com.unity.modules.unitywebrequesttexture": "1.0.0",
    35.     "com.unity.modules.unitywebrequestwww": "1.0.0",
    36.     "com.unity.modules.vehicles": "1.0.0",
    37.     "com.unity.modules.video": "1.0.0",
    38.     "com.unity.modules.vr": "1.0.0",
    39.     "com.unity.modules.wind": "1.0.0",
    40.     "com.unity.modules.xr": "1.0.0"
    41.   }
    42. }
    Capture.JPG
     
  4. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    365
    We do that all the time, it's not a "bad idea", it's a workaround for an unresponsive UI.

    You need to enable "show dependencies" under "Advanced".
    Also, if you remove dependency packages from the manifest they'll just be added again.

    Try removing Cinemachine from your manifest and see it disappear in Package Manager.

    Everything prefixed "com.unity.modules" is internal and can't really be removed (or will automatically be added again as needed). The remaining match directly.

    upload_2019-10-16_14-51-16.png
     
    Last edited: Oct 17, 2019
  5. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    2,776
    I had noticed that but I need to test on other project and see if it's really safe. :)
     
  6. Adrian

    Adrian

    Joined:
    Apr 5, 2008
    Posts:
    379
    It's definitely intended to edit the manifest directly. Some features like scoped registries are currently only possibly by editing the manifest directly.

    The manifest is also fully documented and the documentation mentions editing it directly, e.g.
     
    APSchmidt likes this.
  7. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    2,776
    @miniwolf_unity For information, in case you haven't seen this thread. :)