Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Custom Project Template

Discussion in 'Editor & General Support' started by SuperFranTV, Oct 30, 2022.

  1. SuperFranTV

    SuperFranTV

    Joined:
    Oct 18, 2015
    Posts:
    140
    Hello,

    I want to create an empty project template. There should be no build-in packages and no JetBrainRiderEditor. I have already created a custom template and the manifest for the packages is empty. Despite this, Unity keeps creating Unity.UI and JetBrainRiderEditor as packages. Can you change that?

    Thanks for the help.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,713
    It appears to be annoyingly and infuriatingly not possible.

    The closest way is if you make an empty project, INCLUDING the ProjectSettings, viciously cull down the
    Packages/manifest.json
    file, and then store that project so you can force-revert parts of it.

    And even then, it will only work for the version of Unity serialized in the ProjectVersions.txt file.

    If you upgrade Unity, it detects the change and happily barfs a metric crapload of updates into that
    Packages/manifest.json
    .

    Better yet, some of those changes may actually be necessary (which is probably why they do it), requiring you to reason about them before resetting them from your source control.

    It is all part of this noise:

    Extra unwanted packages in new projects (collab, testing, rider and other junk):

    https://forum.unity.com/threads/temp-unityengine-testrunner-dll-error.1133938/#post-7287748

    About the fastest way I have found to make a project and avoid all this noise is to create the project, then as soon as you see the files appear, FORCE-STOP (hard-kill) Unity (with the Activity Manager or Task Manager), then go hand-edit the Packages/manifest.json file as outlined in the above post, then reopen Unity.

    Sometimes the package system gets borked from all this unnecessary churn and requires the package cache to be cleared:

    https://stackoverflow.com/questions/53145919/unity3d-package-cache-errors/69779122
     
  3. SuperFranTV

    SuperFranTV

    Joined:
    Oct 18, 2015
    Posts:
    140
    Sounds not good..