Search Unity

Failed Importing Package Error

Discussion in 'Editor & General Support' started by paavann, Apr 7, 2021.

  1. paavann

    paavann

    Joined:
    Nov 21, 2018
    Posts:
    36
    Hi, I want to open unity, my project and then import a package that i have stored in my system .
    so I am using this command:

    unity.exe -batchmode -projectPath "D:\MyProject\TwoPunchMan" -importPackage "C:\Users\Santy\Downloads\testing\LeanTouch"

    it gives error : Failed importing package. It happens with every package.

    I tried without using -batchmode. I get same error in console.

    I will run this command at jenkins which will import a package at my project and will trigger build.
    I wonder what will happen if there are some scripts that are already available in my project . Will it replace all things by itself or prompt a gui to choose?

    Using unity 2019.4.7f1.
    Please guide me how to do it?
     
  2. UnityMaru

    UnityMaru

    Community Engagement Manager PSM

    Joined:
    Mar 16, 2016
    Posts:
    1,227
    Joe-Censored likes this.
  3. paavann

    paavann

    Joined:
    Nov 21, 2018
    Posts:
    36
    @UnityMaru, Thanks for the info, please let me know how can I install package by cmd in a project....
    I checked the new doc about new package system, but it needs to open unity and run the script to install package.
    But I want to automate things and want to install custom packages through cmd.
     
    Last edited: Apr 22, 2021
  4. UnityMaru

    UnityMaru

    Community Engagement Manager PSM

    Joined:
    Mar 16, 2016
    Posts:
    1,227
    Unfortunately, it's not something that's officially supported at this time. I've let the team know that you would find a feature like this useful.