Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 9bf30cb

Browse files
Merge pull request #918 from github-for-unity/fixes/disable-extension-loader
Disable the extension loader if the extension is disabled
2 parents ca4aa9a + 4395ae9 commit 9bf30cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/ExtensionLoader/ExtensionLoader.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ public bool Initialized
3232

3333
static ExtensionLoader()
3434
{
35+
if (Environment.GetEnvironmentVariable("GITHUB_UNITY_DISABLE") == "1")
36+
{
37+
return;
38+
}
3539
EditorApplication.update += Initialize;
3640
}
3741

0 commit comments

Comments
 (0)