From 5aca20f2d98558da1501d47caa6fd44880b202ec Mon Sep 17 00:00:00 2001 From: mischa Date: Fri, 3 Nov 2023 20:48:54 +0100 Subject: [PATCH] Edgegap Plugin: link to our custom documentation instead --- .../Hosting/Edgegap/Editor/EdgegapWindow.cs | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/Assets/Mirror/Hosting/Edgegap/Editor/EdgegapWindow.cs b/Assets/Mirror/Hosting/Edgegap/Editor/EdgegapWindow.cs index 450de2d26..f9c4b45e6 100755 --- a/Assets/Mirror/Hosting/Edgegap/Editor/EdgegapWindow.cs +++ b/Assets/Mirror/Hosting/Edgegap/Editor/EdgegapWindow.cs @@ -193,18 +193,23 @@ string GetExternalIpAddress() void OpenDocumentationCallback() { - ApiEnvironment selectedApiEnvironment = (ApiEnvironment)_apiEnvironmentSelect.value; - string documentationUrl = selectedApiEnvironment.GetDocumentationUrl(); + // MIRROR CHANGE + // ApiEnvironment selectedApiEnvironment = (ApiEnvironment)_apiEnvironmentSelect.value; + // string documentationUrl = selectedApiEnvironment.GetDocumentationUrl(); + // + // if (!string.IsNullOrEmpty(documentationUrl)) + // { + // UnityEngine.Application.OpenURL(documentationUrl); + // } + // else + // { + // string apiEnvName = Enum.GetName(typeof(ApiEnvironment), selectedApiEnvironment); + // Debug.LogWarning($"Could not open documentation for api environment {apiEnvName}: No documentation URL."); + // } - if (!string.IsNullOrEmpty(documentationUrl)) - { - UnityEngine.Application.OpenURL(documentationUrl); - } - else - { - string apiEnvName = Enum.GetName(typeof(ApiEnvironment), selectedApiEnvironment); - Debug.LogWarning($"Could not open documentation for api environment {apiEnvName}: No documentation URL."); - } + // link to the easiest documentation + UnityEngine.Application.OpenURL("https://mirror-networking.gitbook.io/docs/hosting/edgegap-hosting-plugin-guide"); + // END MIRROR CHANGE } void ConnectCallback()