Quantcast
Channel: Questions in topic: "package"
Viewing all articles
Browse latest Browse all 690

Automate importing of .unitypackages?

$
0
0
We have several third-party packages that we'd like to integrate into our Unity project. We've checked the .unitypackage files into our source control system (subversion). We have an automated build process that builds the unity project. It uses the following command line: /Applications/Unity/Unity.app/Contents/MacOS/Unity -quit -batchmode -projectPath -executeMethod Before we execute this step, we'd like to import these third-party packages into our project. I've tried the -importProject command-line option. The problem is that some of our .cs scripts reference classes declared in .cs scripts found in the third-party packages. Thus, unity throws an error when compiling our script because the .cs files from the .unitypackages haven't been imported and don't yet exist on the system. Importing manually in the Unity GUI environment isn't a problem - the compiler errors are listed but go away when you import the packages (Assets/Import Package/Custom Package). However, when run from the command-line, Unity exits unsuccessfully when it encounters the first compile error. Is there a way to force the project to import packages before trying to compile our .cs scripts?

Viewing all articles
Browse latest Browse all 690

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>