public class UnityVersionManager
extends java.lang.Object
unity version manager tool.
It loads the needed dynamic library from the resource directory at startup time.| Constructor and Description |
|---|
UnityVersionManager() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
detectProjectVersion(java.io.File projectPath)
Detects the unity editor version used in
projectPath. |
static Installation |
installUnityEditor(java.lang.String version)
Installs the given version of unity to default destination.
|
static Installation |
installUnityEditor(java.lang.String version,
Component[] components)
Installs the given version of unity and additional components to default destination.
|
static Installation |
installUnityEditor(java.lang.String version,
java.io.File destination)
Installs the given version of unity to destination.
|
static Installation |
installUnityEditor(java.lang.String version,
java.io.File destination,
Component[] components)
Installs the given version of unity and additional components to destination.
|
static Installation[] |
listInstallations()
Lists Unity installations.
|
static Installation |
locateUnityInstallation(java.lang.String unityVersion)
Returns the path to the installation location for the provided version or
Null. |
static java.lang.String |
readUnityVersion(java.io.File installationLocation)
Return the version as
String of the unity installation at the provided location or Null. |
static java.lang.String |
uvmVersion()
Returns the uvm core library version.
|
public static java.lang.String uvmVersion()
public static Installation[] listInstallations()
Installation or nullpublic static java.lang.String detectProjectVersion(java.io.File projectPath)
projectPath.projectPath - the path to the unity project rootNULLpublic static Installation locateUnityInstallation(java.lang.String unityVersion)
Null.unityVersion - the version string to fetch the installation location forInstallation object or nullpublic static Installation installUnityEditor(java.lang.String version, java.io.File destination)
version - the version of unity to installdestination - the location to install unity toInstallation object or nullpublic static Installation installUnityEditor(java.lang.String version)
version - the version of unity to installInstallation object or nullpublic static Installation installUnityEditor(java.lang.String version, Component[] components)
version - the version of unity to installcomponents - a list of optional Components to installInstallation object or nullComponent,
Installationpublic static Installation installUnityEditor(java.lang.String version, java.io.File destination, Component[] components)
version - the version of unity to installdestination - the location to install unity tocomponents - a list of optional Components to installInstallation object or nullComponent,
Installationpublic static java.lang.String readUnityVersion(java.io.File installationLocation)
String of the unity installation at the provided location or Null.installationLocation - the path to the unity installation or Unity executablenull