UnityEditor
in package
FinalYes
Wraps one Unity Editor installation and executes batchmode commands.
Tags
Table of Contents
Constants
- ARGUMENT_LICENSE_USE : mixed = '-manualLicenseFile'
Properties
- $executable : string|null
- $hub : UnityHub
- $version : string
Methods
- __construct() : mixed
- __toString() : string
- createEmptyProject() : UnityProject
- createLicenseFile() : string|null
- execute() : Process
- install() : bool
- installModules() : bool
- isInstalled() : bool
- isLicensed() : bool
- license() : bool
- setExecutable() : void
- useLicenseFile() : bool
Constants
ARGUMENT_LICENSE_USE
public
mixed
ARGUMENT_LICENSE_USE
= '-manualLicenseFile'
Properties
$executable
public
string|null
$executable
= null
$hub
public
UnityHub
$hub
$version
public
string
$version
Methods
__construct()
public
__construct(UnityHub $hub, string $version) : mixed
Parameters
- $hub : UnityHub
- $version : string
__toString()
public
__toString() : string
Return values
stringcreateEmptyProject()
public
createEmptyProject(string $path[, bool $useUnityAPI = true ]) : UnityProject
Parameters
- $path : string
- $useUnityAPI : bool = true
Return values
UnityProjectcreateLicenseFile()
public
createLicenseFile() : string|null
Return values
string|nullexecute()
public
execute(bool $validateExitCode, string ...$arguments) : Process
Parameters
- $validateExitCode : bool
- $arguments : string
Return values
Processinstall()
public
install() : bool
Return values
boolinstallModules()
public
installModules(string ...$modules) : bool
Parameters
- $modules : string
Return values
boolisInstalled()
public
isInstalled() : bool
Return values
boolisLicensed()
public
isLicensed(string $projectPath) : bool
Parameters
- $projectPath : string
Return values
boollicense()
public
license(string $projectPath[, bool $assumeSuccess = false ]) : bool
Parameters
- $projectPath : string
- $assumeSuccess : bool = false
Return values
boolsetExecutable()
public
setExecutable(string $executable) : void
Parameters
- $executable : string
useLicenseFile()
public
useLicenseFile(string $file) : bool
Parameters
- $file : string