コード例 #1
0
    public static void DeleteEffectPrefab(GameObject tarPrefab)
    {
        // delete preview image
        string filename = NgFile.CombinePath(FXMakerMain.inst.GetResourceDir(FXMakerMain.TOOLDIR_TYPE.TEMPPREVIEWTEXTURE), NgAsset.GetPrefabThumbFilename(tarPrefab));

        NgUtil.LogMessage("DeleteEffectPrefab() - delete preview - " + filename);
        AssetDatabase.MoveAssetToTrash(filename);
//		AssetDatabase.DeleteAsset(filename);
        // check clipboard
        FXMakerClipboard.inst.CheckDeletePrefab(tarPrefab);
        // delete prefab
        NgAsset.DeletePrefab(tarPrefab);

        AssetDatabaseRefresh();
        AssetDatabaseSaveAssets();
    }