private static void EditorApplicaton_Update()
        {
            if (SaveCancelledAssetList.Count > 0)
            {
                EditorUtility.DisplayDialog(
                    "VitDeck Asset Guardian",
                    LocalizedMessage.Get("AssetGuardian.Notificator.ModificationNotAllowed") + "\n" + Digest(SaveCancelledAssetList),
                    LocalizedMessage.Get("AssetGuardian.Notificator.CloseDialog"));

                SaveCancelledAssetList.Clear();
            }
            if (DeleteCancelledAssetList.Count > 0)
            {
                EditorUtility.DisplayDialog(
                    "VitDeck Asset Guardian",
                    LocalizedMessage.Get("AssetGuardian.Notificator.DeleteNotAllowed") + "\n" + Digest(DeleteCancelledAssetList),
                    LocalizedMessage.Get("AssetGuardian.Notificator.CloseDialog"));
                DeleteCancelledAssetList.Clear();
            }
            if (MoveCancelledAssetList.Count > 0)
            {
                EditorUtility.DisplayDialog(
                    "VitDeck Asset Guardian",
                    LocalizedMessage.Get("AssetGuardian.Notificator.MoveOrRenameNotAllowed") + "\n" + Digest(MoveCancelledAssetList),
                    LocalizedMessage.Get("AssetGuardian.Notificator.CloseDialog"));
                MoveCancelledAssetList.Clear();
            }
        }
示例#2
0
        private static void EditorApplicaton_Update()
        {
            if (SaveCancelledAssetList.Count > 0)
            {
                EditorUtility.DisplayDialog("VitDeck Asset Guardian", "以下のアセットの変更は許可されていません。\n" + Digest(SaveCancelledAssetList), "ok");

                SaveCancelledAssetList.Clear();
            }
            if (DeleteCancelledAssetList.Count > 0)
            {
                EditorUtility.DisplayDialog("VitDeck Asset Guardian", "以下のアセットの削除は許可されていません。\n" + Digest(DeleteCancelledAssetList), "ok");
                DeleteCancelledAssetList.Clear();
            }
            if (MoveCancelledAssetList.Count > 0)
            {
                EditorUtility.DisplayDialog("VitDeck Asset Guardian", "以下のアセットの移動または名前の変更は許可されていません。\n" + Digest(MoveCancelledAssetList), "ok");
                MoveCancelledAssetList.Clear();
            }
        }