Skip to content

Commit c2935c6

Browse files
Fix typo and add to docs
1 parent dd03ec0 commit c2935c6

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ Launch many projects at the same time:
7373
```powershell
7474
Get-UnityProjectInstance -Recurse | Start-UnityEditor
7575
```
76+
Invoke methods with arbitrary arguments:
77+
```powershell
78+
Start-UnityEditor -ExecuteMethod Build.Invoke -BatchMode -Quit -LogFile .\build.log -Wait -AdditionalArguments "-BuildArg1 -BuildArg2"
79+
```
7680
Find the installers for a particular version:
7781
```powershell
7882
Find-UnitySetupInstaller -Version '2017.3.0f3' | Format-Table

UnitySetup/UnitySetup.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
RootModule = 'UnitySetup'
1515

1616
# Version number of this module.
17-
ModuleVersion = '5.0'
17+
ModuleVersion = '5.1'
1818

1919
# Supported PSEditions
2020
# CompatiblePSEditions = @()

UnitySetup/UnitySetup.psm1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ function Get-UnityProjectInstance {
755755
.PARAMETER ExecuteMethod
756756
The script method for the Unity Editor to execute.
757757
.PARAMETER AdditionalArguments
758-
Additiong arguments for Unity or your custom method
758+
Additional arguments for Unity or your custom method
759759
.PARAMETER OutputPath
760760
The output path that the Unity Editor should use.
761761
.PARAMETER LogFile
@@ -797,7 +797,7 @@ function Get-UnityProjectInstance {
797797
.EXAMPLE
798798
Start-UnityEditor -Version 2017.3.0f3
799799
.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"
801801
.EXAMPLE
802802
Get-UnityProjectInstance -Recurse | Start-UnityEditor -BatchMode -Quit
803803
.EXAMPLE

0 commit comments

Comments
 (0)