Skip to content

Instantly share code, notes, and snippets.

@codebyfire
Last active February 21, 2022 21:20
Show Gist options
  • Save codebyfire/76777e01559a8d4e7548 to your computer and use it in GitHub Desktop.
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.
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