Unity Build Tool: Difference between revisions

From LD Smith Games Workshop
Jump to navigation Jump to search
Line 72: Line 72:
=== Update API ===
=== Update API ===


This will update the project to the current Unity version, without prompting for each selected project.
This will update the selected projects to the current Unity version, without prompting for each selected project.


Calls the following by command line
Calls the following by command line


<unity executable> -accept-apiupdate -batchmode -quit -projectPath <project path>
<unity executable> -accept-apiupdate -batchmode -quit -projectPath <project path>

Revision as of 20:12, 30 June 2019

Instructions for the Unity Build Tool

Installation

The latest Unity Build Tool can be downloaded at https://bitbucket.org/gatechgrad/unityhelper/src/default/

Download and install Ruby if you don't already have it.

https://www.ruby-lang.org/en/

Navigate to the UnityHelper directory and run:

> ruby unity_version_gui.rb

Install the following gems

> gem install gtk3

> get install rubyzip

> gem install win32-sound

> gem install fileutils


Unitybuildtool 20190630.jpg

Compile Selected

Check the checkboxes to compile for the selected platforms

  • Windows - make Windows build
  • Mac - make MacOS build
  • Linux - make Linux build
  • Make ZIP files - ZIPs all folders in the build folder

Scan Projects

Reloads the main project list. Called when the Unity Build Tool is started.

Find Unity Scenes

For the selected projects, display all .unity files anywhere in the project folder

Clear build folder

Delete all files in the "build" folder for the selected projects

Open build folder

Open the "build" folder in Windows Explorer for each selected project

Clear VS files

Delete all .csproj and .sln files in the main project directory for each selected project

Remove Default Packages

Attempts to remove the default packages installed by Unity.

  • com.unity.textmeshpro
  • com.unity.ads
  • com.unity.analytics
  • com.unity.purchasing
  • com.unity.collab-proxy
  • com.unity.multiplayer-hlapi
  • com.unity.timeline
  • com.unity.xr.legacyinputhelper

Adds PackageRemover.cs to the Editor folder, and calls PackageRemover.RemovePackages.

Note - The removal will fail if there are errors related to TextMeshPro needing to be .NET 4.0 scripting. Set scripting in PlayerSettings to 4.0 before running RemovePackages.

Update API

This will update the selected projects to the current Unity version, without prompting for each selected project.

Calls the following by command line

<unity executable> -accept-apiupdate -batchmode -quit -projectPath <project path>