public static void BuildCloudAll()
        {
            var platforms = WorkerBuilder.GetBuildConfiguration().WorkerBuildConfigurations
                            .Select((x) => x.WorkerPlatform).ToArray();

            MenuBuild(platforms, BuildEnvironment.Cloud);
        }
        private static void MenuBuild(IEnumerable <WorkerPlatform> platforms, BuildEnvironment environment)
        {
            // Delaying build by a frame to ensure the editor has re-rendered the UI to avoid odd glitches.
            EditorApplication.delayCall += () =>
            {
                LocalLaunch.BuildConfig();

                foreach (var platform in platforms)
                {
                    WorkerBuilder.BuildWorkerForEnvironment(platform, environment);
                }

                Debug.LogFormat("Completed build for {0} target", environment);
            };
        }
 public static void Clean()
 {
     WorkerBuilder.Clean();
     Debug.Log("Clean completed");
 }