Esempio n. 1
0
        private void Clean()
        {
            var service = new StatorRefreshService(new StatorSettings());

            service.Clean();
            AssetDatabase.Refresh();
        }
Esempio n. 2
0
        public void OnPreprocessBuild(BuildTarget target, string path)
        {
            Debug.Log("[Stator] start refresh generated code before build process");
            var service = new StatorRefreshService(new StatorSettings());

            service.Clean();
            AssetDatabase.Refresh();
            service.Refresh();
            AssetDatabase.Refresh();
            Debug.Log("[Stator] finish refresh generated code");
        }
Esempio n. 3
0
        public static void Init()
        {
            var settings = new StatorSettings();
            var service  = new StatorRefreshService(settings);

            if (settings.DisabledAutoRefreshing)
            {
                service.DebugInfo("Auto refreshing disabled");
                return;
            }

            CompilationPipeline.assemblyCompilationFinished += service.OnFinishedCompilation;
            service.Refresh();
        }
Esempio n. 4
0
        private void Generate()
        {
            var service = new StatorRefreshService(new StatorSettings());

            service.Refresh();
        }