Coordinates Unity Editor Play entry through ordered preparation steps and one launch operation.
Install com.warlogic.launchintercept through the Warlogic scoped registry.
Register editor integrations from an InitializeOnLoadMethod. Preparations declare a priority and run sequentially before the launch operation. Higher priorities run first, with registration ID as the stable tie breaker. The first named replacement of the default launch operation succeeds; a second replacement throws with both source IDs.
LaunchInterceptRegistration.RegisterPreparation("my.preparation", new MyPreparation());
LaunchInterceptRegistration.ReplaceLaunchOperation("my.operation", new MyLaunchOperation());Preparations are asynchronous because they may perform asset generation or validation. A successful task continues launch, OperationCanceledException cancels launch, and any other exception fails launch. Launch operations are synchronous and are responsible for entering Play mode. The built-in operation simply sets EditorApplication.isPlaying.