Skip to content

Commit

Permalink
AnimEditUtilWindow の GameObject メニューを削除する
Browse files Browse the repository at this point in the history
  • Loading branch information
whiteflare committed Jun 1, 2024
1 parent 778e22b commit 497f442
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions Editor/AnimEditUtility/AnimEditUtilWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,23 +186,23 @@ public static void ShowWindow()
window.SetSelection(Selection.GetFiltered(typeof(GameObject), SelectionMode.Editable | SelectionMode.ExcludePrefab));
}

#if ENV_VRCSDK3_AVATAR
[MenuItem("GameObject/WriteDefaultをオフにする", priority = 10)]
public static void ShowWindowWriteDefault()
{
var window = GetWindow<AnimEditUtilWindow>(Title);
window.SetSelection(Selection.GetFiltered(typeof(GameObject), SelectionMode.Editable | SelectionMode.ExcludePrefab));
window.modeEdit = Mathf.Max(0, ArrayUtility.IndexOf(window.modeTypes, typeof(ModeWriteDefaultTakedown)));
}

[MenuItem("GameObject/AvatarMaskのセットアップ", priority = 10)]
public static void ShowWindowAvatarMask()
{
var window = GetWindow<AnimEditUtilWindow>(Title);
window.SetSelection(Selection.GetFiltered(typeof(GameObject), SelectionMode.Editable | SelectionMode.ExcludePrefab));
window.modeEdit = Mathf.Max(0, ArrayUtility.IndexOf(window.modeTypes, typeof(ModeSetupAvatarMask)));
}
#endif
//#if ENV_VRCSDK3_AVATAR
// [MenuItem("GameObject/WriteDefaultをオフにする", priority = 10)]
// public static void ShowWindowWriteDefault()
// {
// var window = GetWindow<AnimEditUtilWindow>(Title);
// window.SetSelection(Selection.GetFiltered(typeof(GameObject), SelectionMode.Editable | SelectionMode.ExcludePrefab));
// window.modeEdit = Mathf.Max(0, ArrayUtility.IndexOf(window.modeTypes, typeof(ModeWriteDefaultTakedown)));
// }

// [MenuItem("GameObject/AvatarMaskのセットアップ", priority = 10)]
// public static void ShowWindowAvatarMask()
// {
// var window = GetWindow<AnimEditUtilWindow>(Title);
// window.SetSelection(Selection.GetFiltered(typeof(GameObject), SelectionMode.Editable | SelectionMode.ExcludePrefab));
// window.modeEdit = Mathf.Max(0, ArrayUtility.IndexOf(window.modeTypes, typeof(ModeSetupAvatarMask)));
// }
//#endif
}
}

Expand Down

0 comments on commit 497f442

Please sign in to comment.