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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Question Importing Textmesh Pro package via command line

Discussion in 'Editor & General Support' started by YiHan-GI, Dec 23, 2020.

  1. YiHan-GI

    YiHan-GI

    Joined:
    Mar 20, 2018
    Posts:
    9
    Hello, I want to use command line to automate the building process of unity projects. The unity project will be clean, like freshly pulled from repository, only has following 3 folders: Assets, Packages(with only 1 file in it: manifest.json), and ProjectSettings.

    Example of my current command line:
    "C:\Program Files\Unity\Hub\Editor\2019.2.21f1\Editor\Unity.exe" -quit -batchmode -logFile "%cd%\Build\BuildLog.txt" -projectPath "%cd%\Source\Unity" -executeMethod ProjectName.Builder.Build

    Now I have met 2 problems when trying to import the Textmesh Pro package via command line:
    1. On the command line manual page, I could not find the correct command to import the package. There is one command seems to be useful: -importPackage <pathname>, but since Textmesh Pro is a Verified package, its source does not stored locally, I can not put something like com.unity.textmeshpro into the <pathname>.
      What is the correct command to import a verified package?
    2. Even I can somehow make the command work, Textmesh Pro gives another problem: When being imported, it will open a window with 2 button options. If I don't make the choice during the UI-less build (which I actually can't), the package will simply not be imported and built into the project.
      Is there even a command for making such choice?
    I wish everyone in our community have a nice holiday and keep healthy!
    Cheers
     
  2. YiHan-GI

    YiHan-GI

    Joined:
    Mar 20, 2018
    Posts:
    9
    The new year vacation is finally over :). I hope everyone is still fine!
    Can someone help me here?