static void CreateFaceData() { string path = "Assets/Resources/map.asset"; if (!File.Exists(path)) { NearualData asset = ScriptableObject.CreateInstance <NearualData>(); AssetDatabase.CreateAsset(asset, path); AssetDatabase.Refresh(); } else { EditorUtility.DisplayDialog("tip", "asset exists", "ok"); } }
private void OnEnable() { data = target as NearualData; SortData(); }