Wanzyee Studio
ProcessLauncher

Start an external process window. More...

Inherits MonoBehaviour.

Public Member Functions

void Launch ()
 Launch a process set up by this if not yet. More...
 
void Kill ()
 Kill the process started by this immediately if is running. More...
 

Public Attributes

bool launchOnAwake = true
 Flag if to auto launch process when Awake(). More...
 
bool killOnDestroy = true
 Flag if to auto kill the process when this OnDestroy(). More...
 
string file = ""
 The file path to start the process. More...
 
string arguments = ""
 The arguments passed to the process. More...
 
ProcessWindowStyle style = ProcessWindowStyle.Normal
 The process window style. More...
 

Properties

Process process [get]
 The process started by this. More...
 
bool isRunning [get]
 Determine if the process started by this is still running. More...
 

Detailed Description

Start an external process window.

Only allow one process running by each launcher for easier maintenance. Use multiple components to run a number of processes in need.

Member Function Documentation

void Launch ( )

Launch a process set up by this if not yet.

void Kill ( )

Kill the process started by this immediately if is running.

Member Data Documentation

bool launchOnAwake = true

Flag if to auto launch process when Awake().

bool killOnDestroy = true

Flag if to auto kill the process when this OnDestroy().

It's recommended, otherwise user should maintain it manually.

string file = ""

The file path to start the process.

string arguments = ""

The arguments passed to the process.

ProcessWindowStyle style = ProcessWindowStyle.Normal

The process window style.

Property Documentation

Process process
get

The process started by this.

bool isRunning
get

Determine if the process started by this is still running.