OSOpenFile(string, string)
Open an application with a quoted string of arguments.
Read time 1 minuteLast updated 20 hours ago
Definition
- Type: Method
- Namespace: Unity.CodeEditor
- Assembly: UnityEditor
public static bool OSOpenFile(string appPath, string arguments)
Parameters
Returns
Type | Description |
|---|---|
| bool |
Remarks
This method is useful if you want to write a custom tool in the Unity Editor which launches a local application with arguments. The Unity Editor passes this request to the operating system's native support for opening applications. Note: Because the path and parameters you supply are passed directly on to the OS, you must ensure they are correctly quoted for the current platform. You can use Application.platform to detect the current platform.