Is there a way of making a certain package version permanent?

Each time I open a new project I get by default Visual Studio Code package 1.2.0. But that one has problems with IntelliSense. So I manually change to Visual Studio Code Editor 1.1.2 which works with IntelliSense. But I would like to avoid doing that each time I make a new project. Can it be avoided?

Just a thought, but I wonder if it’s possible to make your own project templates?

In the same way there are “3D” and “3D With Extras” templates on the Unity Hub, it would be good if it was possible to make your own with whatever packages you wanted to include.

But I’ve no idea whether that’s already possible or not.

There isn’t, but that’s been a requested feature by me and a couple others.

1 Like

5898617--629342--upload_2020-5-25_19-27-29.png

1 Like

Looking into it, apparently this is the process and… uh…

Maybe it needs a bit of UX work.

3 Likes

Choose the base template that you want everything to be built around and extract it into a folder somewhere. From there open package.json contained within the base folder of the template files and change name to a unique identifier for your organization and displayName to a the text you want visible in Unity Hub. Once you’re done save and close the file.

Open manifest.json stored under ProjectData~\Packages. Add any custom packages by name and version. Just as an example if you wanted v2.0.1 of the Google VR package for iOS you’d add "com.unity.xr.googlevr.ios": "2.0.1" Once you’re done save and close the file.

Finally we need to recompress everything. With 7-zip (or equivalent tool supporting tar) create a tar of the base folder and all of its contents into a file named after the unique identifier you specified in package.json. Once you’ve created it you need to gzip the tar. Once you’ve recompressed it move the file into the projects template folder appropriate to the location of your editor and version. I screenshotted the location of mine because ICODE can’t handle the full length properly.

5898695--629351--upload_2020-5-25_19-52-50.png

Thanks for letting me know there is a way to do it within the editor.

1 Like