// this may run on the loader thread if it's an appdomain restart static EntryPoint() { var tempEnv = new DefaultEnvironment(); if (tempEnv.GetEnvironmentVariable("GITHUB_UNITY_DISABLE") == "1") { Debug.Log("GitHub for Unity " + ApplicationInfo.Version + " is disabled"); return; } LogHelper.LogAdapter = new FileLogAdapter(tempEnv.LogPath); EditorApplication.update += Initialize; }
// this may run on the loader thread if it's an appdomain restart static EntryPoint() { var tempEnv = new DefaultEnvironment(); if (tempEnv.GetEnvironmentVariable("GITHUB_UNITY_DISABLE") == "1") { Debug.Log("GitHub for Unity " + ApplicationInfo.Version + " is disabled"); return; } Logging.LogAdapter = new FileLogAdapter(tempEnv.LogPath); ServicePointManager.ServerCertificateValidationCallback = ServerCertificateValidationCallback; EditorApplication.update += Initialize; }