Esempio n. 1
0
    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");
        }
    }
Esempio n. 2
0
 private void OnEnable()
 {
     data = target as NearualData;
     SortData();
 }