ScriptBatch.DoIOSDebugBuild C# (CSharp) Method

DoIOSDebugBuild() private static method

Performs the iOS Debug Build
private static DoIOSDebugBuild ( ) : void
return void
    private static void DoIOSDebugBuild()
    {
        // Get filename.
        string path = EditorUtility.SaveFolderPanel("Choose Location of Built Game", "", "");
        if (string.IsNullOrEmpty(path))
        {
            return;
        }

        // Build player.
        BuildPipeline.BuildPlayer(GetEnabledBuildScenes(), path, BuildTarget.iOS, _buildOptions);

        // Run the game (Process class from System.Diagnostics).
        Process proc = new Process();
        proc.StartInfo.FileName = path;
        proc.Start();
    }