File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ Launch many projects at the same time:
73
73
``` powershell
74
74
Get-UnityProjectInstance -Recurse | Start-UnityEditor
75
75
```
76
+ Invoke methods with arbitrary arguments:
77
+ ``` powershell
78
+ Start-UnityEditor -ExecuteMethod Build.Invoke -BatchMode -Quit -LogFile .\build.log -Wait -AdditionalArguments "-BuildArg1 -BuildArg2"
79
+ ```
76
80
Find the installers for a particular version:
77
81
``` powershell
78
82
Find-UnitySetupInstaller -Version '2017.3.0f3' | Format-Table
Original file line number Diff line number Diff line change 14
14
RootModule = ' UnitySetup'
15
15
16
16
# Version number of this module.
17
- ModuleVersion = ' 5.0 '
17
+ ModuleVersion = ' 5.1 '
18
18
19
19
# Supported PSEditions
20
20
# CompatiblePSEditions = @()
Original file line number Diff line number Diff line change @@ -755,7 +755,7 @@ function Get-UnityProjectInstance {
755
755
. PARAMETER ExecuteMethod
756
756
The script method for the Unity Editor to execute.
757
757
. PARAMETER AdditionalArguments
758
- Additiong arguments for Unity or your custom method
758
+ Additional arguments for Unity or your custom method
759
759
. PARAMETER OutputPath
760
760
The output path that the Unity Editor should use.
761
761
. PARAMETER LogFile
@@ -797,7 +797,7 @@ function Get-UnityProjectInstance {
797
797
. EXAMPLE
798
798
Start-UnityEditor -Version 2017.3.0f3
799
799
. EXAMPLE
800
- Start-UnityEditor -ExecuteMethod Build.Invoke -BatchMode -Quit -LogFile .\build.log -Wait
800
+ Start-UnityEditor -ExecuteMethod Build.Invoke -BatchMode -Quit -LogFile .\build.log -Wait -AdditionalArguments "-BuildArg1 -BuildArg2"
801
801
. EXAMPLE
802
802
Get-UnityProjectInstance -Recurse | Start-UnityEditor -BatchMode -Quit
803
803
. EXAMPLE
You can’t perform that action at this time.
0 commit comments