작업 조건 분석 기능 개발

This commit is contained in:
정영민
2025-03-10 16:42:23 +09:00
parent 840638c6e3
commit f2029fd8c9
2988 changed files with 569938 additions and 2342 deletions

View File

@@ -0,0 +1,83 @@
#define Graph_And_Chart_PRO
//#if UNITY_2018_3_OR_NEWER
//#if UNITY_EDITOR
//using UnityEngine;
//using System.Collections;
//using UnityEditor;
//using ChartAndGraph;
//public class PrefabOverrideChart : UnityEditor.AssetPostprocessor
//{
// static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
// {
// foreach (string path in importedAssets)
// {
// string lowPath = path.ToLower();
// if (lowPath.EndsWith(".prefab"))
// {
// if (ContainsPath(lowPath) == false)
// {
// // Debug.Log(lowPath);
// EditorApplication.delayCall += () => CleanPrefab(path);
// AddPath(lowPath);
// }
// }
// }
// foreach (string path in deletedAssets)
// {
// RemovePath(path.ToLower());
// }
// }
// [MenuItem("EditorPrefs/Clear all Editor Preferences")]
// static void deleteAllExample()
// {
// EditorPrefs.DeleteAll();
// }
// static bool ContainsPath(string path)
// {
// return EditorPrefs.GetBool("GraphAndChartPrefabOverride$" + path, false);
// }
// static void RemovePath(string path)
// {
// EditorPrefs.DeleteKey("GraphAndChartPrefabOverride$" + path);
// }
// static void AddPath(string path)
// {
// EditorPrefs.SetBool("GraphAndChartPrefabOverride$" + path, true);
// }
// static void CleanPrefab(string path)
// {
// GameObject obj = PrefabUtility.LoadPrefabContents(path);
// //AssetDatabase.DeleteAsset(path);
// bool savePrefab = false;
// foreach (var item in obj.GetComponentsInChildren<AnyChart>(true))
// {
// savePrefab = true;
// // if (item == null)
// // continue;
// // if (item.gameObject == null)
// // continue;
// // Debug.Log("destroy " + item.gameObject.name);
// while (item.gameObject.transform.childCount > 0)
// {
// var innerObj = item.gameObject.transform.GetChild(0).gameObject;
// if (innerObj != null)
// {
// // Debug.Log("destroy inner" + innerObj.name);
// GameObject.DestroyImmediate(innerObj);
// }
// }
// }
// if (savePrefab)
// PrefabUtility.SaveAsPrefabAsset(obj, path);
// PrefabUtility.UnloadPrefabContents(obj);
// }
//}
//#endif
//#endif