Platform switcher.
More...
|
delegate void | SwitchStart (BuildTarget target, MobileTextureSubtarget subTarget) |
|
delegate void | SwitchComplete (BuildTarget target, MobileTextureSubtarget subTarget, bool success) |
|
|
static void | SwitchCLI () |
| Switches the current platform to the target via CLI. More...
|
|
static bool | Switch (string build, string executeMethod="", bool batchmode=false, bool quit=true, bool noGraphics=false, bool copySettings=false) |
| Switches the current platform to the target. More...
|
|
static bool | Switch (BuildTarget target, MobileTextureSubtarget subTarget=MobileTextureSubtarget.Generic) |
| Switches the current platform to the target. More...
|
|
static void | ResetConfig () |
| Reset any configuration changes. More...
|
|
static void | SayHello () |
| Test switching with an execute method. More...
|
|
static void | MethodBeforeSwitch () |
| Test method (before switching). More...
|
|
static void | MethodAfterSwitch () |
| Test method (after switching). More...
|
|
static void | DefaultMethodAfterSwitch () |
| Default method after switching. More...
|
|
◆ DefaultMethodAfterSwitch()
static void Crosstales.TPS.Switcher.DefaultMethodAfterSwitch |
( |
| ) |
|
|
static |
Default method after switching.
◆ MethodAfterSwitch()
static void Crosstales.TPS.Switcher.MethodAfterSwitch |
( |
| ) |
|
|
static |
Test method (after switching).
◆ MethodBeforeSwitch()
static void Crosstales.TPS.Switcher.MethodBeforeSwitch |
( |
| ) |
|
|
static |
Test method (before switching).
◆ ResetConfig()
static void Crosstales.TPS.Switcher.ResetConfig |
( |
| ) |
|
|
static |
Reset any configuration changes.
◆ SayHello()
static void Crosstales.TPS.Switcher.SayHello |
( |
| ) |
|
|
static |
Test switching with an execute method.
◆ Switch() [1/2]
static bool Crosstales.TPS.Switcher.Switch |
( |
BuildTarget |
target, |
|
|
MobileTextureSubtarget |
subTarget = MobileTextureSubtarget.Generic |
|
) |
| |
|
static |
Switches the current platform to the target.
- Parameters
-
target | Target platform for the switch |
subTarget | Texture format (Android, optional) |
- Returns
- True if the switch was successful.
◆ Switch() [2/2]
static bool Crosstales.TPS.Switcher.Switch |
( |
string |
build, |
|
|
string |
executeMethod = "" , |
|
|
bool |
batchmode = false , |
|
|
bool |
quit = true , |
|
|
bool |
noGraphics = false , |
|
|
bool |
copySettings = false |
|
) |
| |
|
static |
Switches the current platform to the target.
- Parameters
-
build | Build type name for Unity, like 'win64' |
executeMethod | Execute method after switch (optional) |
batchmode | Start Unity in batch-mode (default: false, optional) |
quit | Quit Unity in batch-mode (default: true, optional) |
noGraphics | Disable graphic devices in batch-mode (default: false, optional) |
copySettings | Copy the project settings (default: false, optional) |
- Returns
- True if the switch was successful.
◆ SwitchCLI()
static void Crosstales.TPS.Switcher.SwitchCLI |
( |
| ) |
|
|
static |
Switches the current platform to the target via CLI.
◆ CurrentSwitchTarget
BuildTarget Crosstales.TPS.Switcher.CurrentSwitchTarget = BuildTarget.NoTarget |
|
staticget |
The current switch target.
◆ isBusy
bool Crosstales.TPS.Switcher.isBusy |
|
staticget |
◆ OnSwitchComplete
SwitchComplete Crosstales.TPS.Switcher.OnSwitchComplete |
|
static |
An event triggered whenever a switch is completed.
◆ OnSwitchStart
SwitchStart Crosstales.TPS.Switcher.OnSwitchStart |
|
static |
An event triggered whenever a switch is started.
The documentation for this class was generated from the following file:
- C:/Users/slaub/Unity/assets/TurboSwitch/TurboSwitch/Assets/Plugins/crosstales/TurboSwitch/Scripts/Editor/Switcher.cs