static StructComponentsGenerator()
        {
            AssemblyReloadEvents.afterAssemblyReload += StructComponentsGenerator.OnAfterAssemblyReload;

            if (StructComponentsGenerator.IsFirstLaunch() == true)
            {
                StructComponentsGenerator.SetFirstLaunch();
                StructComponentsGenerator.OnAfterAssemblyReload();
            }
        }
예제 #2
0
        static StructComponentsGenerator()
        {
            AssemblyReloadEvents.afterAssemblyReload += StructComponentsGenerator.OnAfterAssemblyReload;
            UnityEditor.Compilation.CompilationPipeline.assemblyCompilationFinished += StructComponentsGenerator.AssemblyCompilationFinishedEventHandler;

            if (StructComponentsGenerator.IsFirstLaunch() == true)
            {
                StructComponentsGenerator.SetFirstLaunch();
                StructComponentsGenerator.OnAfterAssemblyReload();
            }
        }