Platform switcher. More...

Public Member Functions

delegate void SwitchStart (BuildTarget target, MobileTextureSubtarget subTarget)
 
delegate void SwitchComplete (BuildTarget target, MobileTextureSubtarget subTarget, bool success)
 

Static Public Member Functions

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...
 

Properties

static BuildTarget CurrentSwitchTarget = BuildTarget.NoTarget [get]
 The current switch target. More...
 
static bool isBusy [get]
 True if the Switcher is busy. More...
 

Events

static SwitchStart OnSwitchStart
 An event triggered whenever a switch is started. More...
 
static SwitchComplete OnSwitchComplete
 An event triggered whenever a switch is completed. More...
 

Detailed Description

Platform switcher.

Member Function Documentation

◆ 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
targetTarget platform for the switch
subTargetTexture 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
buildBuild type name for Unity, like 'win64'
executeMethodExecute method after switch (optional)
batchmodeStart Unity in batch-mode (default: false, optional)
quitQuit Unity in batch-mode (default: true, optional)
noGraphicsDisable graphic devices in batch-mode (default: false, optional)
copySettingsCopy 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.

Property Documentation

◆ CurrentSwitchTarget

BuildTarget Crosstales.TPS.Switcher.CurrentSwitchTarget = BuildTarget.NoTarget
staticget

The current switch target.

◆ isBusy

bool Crosstales.TPS.Switcher.isBusy
staticget

True if the Switcher is busy.

Event Documentation

◆ 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