Unity Build Tool: Difference between revisions
Levidsmith (talk | contribs) |
Levidsmith (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
Instructions for the Unity Build Tool | Instructions for the Unity Build Tool | ||
=== Installation === | |||
The latest Unity Build Tool can be downloaded at [https://bitbucket.org/gatechgrad/unityhelper/src/default/ https://bitbucket.org/gatechgrad/unityhelper/src/default/] | |||
Download and install Ruby if you don't already have it. | |||
[https://www.ruby-lang.org/en/ 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 | |||
[[File:unitybuildtool 20190630.jpg]] | [[File:unitybuildtool 20190630.jpg]] |
Revision as of 20:11, 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.
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
Compile Selected
Compile for the selected checkboxes
- 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 project 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>