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

Create 2D Project Template from Command Line

Discussion in '2D' started by SinCL, Nov 28, 2020.

  1. SinCL

    SinCL

    Joined:
    Sep 14, 2020
    Posts:
    6
    I am trying to create a 2D Project Template using the -createProject option from the command line:

    %EDITOR_PATH% -batchmode -accept-apiupdate -createProject %PROJECT_PATH% -quit


    The command above creates a 3D project by default. My question is: Is there a command line option to create a 2D project (with 2D project settings and packages installed)?
     
  2. Leo-Yaik

    Leo-Yaik

    Unity Technologies

    Joined:
    Aug 13, 2014
    Posts:
    434
    Replying to an old thread; it should probably with the paramete
    -cloneFromTemplate <templatePath>

    eg
    Code (CSharp):
    1. -cloneFromTemplate /Users/user1/Unity.app/Contents/Resources/PackageManager/ProjectTemplates/com.unity.template.2d-8.0.0.tgz -createProject /Users/user1/work/unity/projects/ttttt
     
  3. AndreusNvidius

    AndreusNvidius

    Joined:
    May 17, 2022
    Posts:
    3
    Is there a reason this flag is not mentioned in the docs?