UnityProject
Table of Contents
Methods
-
__construct()
: mixed
-
__toString()
: string
-
build()
: Process
-
ensureEditorIsInstalled()
: bool
-
ensureEditorIsLicensed()
: bool
-
execute()
: Process
-
executeMethod()
: Process
-
getAssetFiles()
: iterable<string|int, mixed>
-
getEditorVersion()
: string
-
getProjectPath()
: string
-
getProjectVersion()
: string
-
getScriptingBackend()
: int
-
getSetting()
: mixed
-
hasSetting()
: bool
-
installModules()
: bool
-
runTests()
: DOMDocument
-
setProjectVersion()
: void
-
startMethod()
: Process
__construct()
public
__construct(UnityProjectInfo $info, UnityHub $hub) : mixed
Parameters
-
$info
: UnityProjectInfo
-
-
$hub
: UnityHub
-
__toString()
public
__toString() : string
build()
public
build(string $target, string $buildPath) : Process
Parameters
-
$target
: string
-
-
$buildPath
: string
-
ensureEditorIsInstalled()
public
ensureEditorIsInstalled() : bool
ensureEditorIsLicensed()
public
ensureEditorIsLicensed() : bool
execute()
public
execute(string ...$arguments) : Process
Parameters
-
$arguments
: string
-
executeMethod()
public
executeMethod(string $method, array<string|int, mixed> $args) : Process
Parameters
-
$method
: string
-
-
$args
: array<string|int, mixed>
-
getAssetFiles()
public
getAssetFiles() : iterable<string|int, mixed>
Return values
iterable<string|int, mixed>
getEditorVersion()
public
getEditorVersion() : string
getProjectPath()
public
getProjectPath() : string
getProjectVersion()
public
getProjectVersion() : string
getScriptingBackend()
public
getScriptingBackend() : int
getSetting()
public
getSetting(string $key[, mixed $defaultValue = null ]) : mixed
Parameters
-
$key
: string
-
-
$defaultValue
: mixed
= null
-
hasSetting()
public
hasSetting(string $key) : bool
Parameters
-
$key
: string
-
installModules()
public
installModules(string ...$modules) : bool
Parameters
-
$modules
: string
-
runTests()
public
runTests(string ...$testPlatforms) : DOMDocument
Parameters
-
$testPlatforms
: string
-
Return values
DOMDocument
setProjectVersion()
public
setProjectVersion(string $version) : void
Parameters
-
$version
: string
-
startMethod()
public
startMethod(string $method, array<string|int, mixed> $args) : Process
Parameters
-
$method
: string
-
-
$args
: array<string|int, mixed>
-