Beispiel #1
0
        private void Clean()
        {
            var service = new StatorRefreshService(new StatorSettings());

            service.Clean();
            AssetDatabase.Refresh();
        }
        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");
        }