Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ProcessService

*This is an experimental feature.* The ProcessService allows you to start slave instance of UnityEditor, opened to the same Project as the master instance, with a specific RoleProviderAttribute.
Read time 1 minuteLast updated 4 days ago

Definition

public class ProcessService

Remarks

The Standalone Profiler workflow uses this technology.

Static Properties

Property

Description

levelThe ProcessLevel of the running instance of UnityEditor.
roleNameThe role name of the running UnityEditor process. For more information about how to register handlers for a specific process role, see RoleProviderAttribute. For a UnityEditor process of ProcessLevel Master, the roleName is always empty.

Static Methods

Method

Description

DisableProfileConnectionCloses the Profiler connection.
EnableProfileConnectionEnables a connection to the Profiler. The standalone Profiler uses this method.
GetProcessStateGets the ProcessState of a given instance of UnityEditor.
HasCapabilityChecks whether the current process has a given capability.
IsChannelServiceStartedChecks whether the ChannelService is already started.
LaunchLaunches a secondary instance of UnityEditor on the same project as the master instance.
ReadParameterA utility function to read command line arguments passed to the current process.
TerminateTerminates an editor process.

Static Events

Member

Description

ProcessExitedEventAn event triggered in a master instance of UnityEditor when you start a slave instance with ProcessService.Launch exit.