Added automatic toolchain, gcc and make installation
This commit is contained in:
21
Editor/DependencyCheckInitializer.cs
Normal file
21
Editor/DependencyCheckInitializer.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using UnityEditor;
|
||||
using UnityEditor.Callbacks;
|
||||
|
||||
[InitializeOnLoad]
|
||||
public static class DependencyCheckInitializer
|
||||
{
|
||||
static DependencyCheckInitializer()
|
||||
{
|
||||
EditorApplication.update += OpenInstallerOnStart;
|
||||
}
|
||||
|
||||
private static void OpenInstallerOnStart()
|
||||
{
|
||||
EditorApplication.update -= OpenInstallerOnStart;
|
||||
if (!SessionState.GetBool("InstallerWindowOpened", false))
|
||||
{
|
||||
InstallerWindow.ShowWindow();
|
||||
SessionState.SetBool("InstallerWindowOpened", true); // only once per session
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user