Version: 2020.3
public static int LaunchSlave (string roleName, params string[] keyValuePairs);

参数

roleName The name that corresponds to the RoleProviderAttribute of the process to start.
keyValuePairs Arguments passed to the slave process.

返回

int The process ID of the slave process. A value of 0 means the slave process could not be started.

描述

Launches a slave instance of UnityEditor on the same project as the master instance.