Last active
February 21, 2022 21:20
-
-
Save codebyfire/76777e01559a8d4e7548 to your computer and use it in GitHub Desktop.
Download and install Sandboxie (http://www.sandboxie.com) and use this Editor script to open up another instance of your Unity project.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEditor; | |
using System.Diagnostics; | |
public class Sandboxie | |
{ | |
[MenuItem("Sandboxie/Open Sandboxie instance")] | |
public static void OpenSandboxieInstance() | |
{ | |
var process = new Process(); | |
process.StartInfo.FileName = @"C:\Program Files\Sandboxie\Start.exe"; | |
process.StartInfo.Arguments = EditorApplication.applicationPath + " -projectPath \"" + Environment.CurrentDirectory.Replace("/", @"\") + '"'; | |
process.Start(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment