Merge pull request #252 from Santarh/unityEditorScriptsItemPosition

Move UnityEditorScripts items to the bottom of menu.
This commit is contained in:
hiroj 2019-06-03 18:10:47 +09:00 committed by GitHub
commit 2f566c7d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 6 deletions

View File

@ -51,7 +51,7 @@ namespace VRM
[SerializeField]
BoneMeshEraser.EraseBone[] m_eraseBones;
[MenuItem("GameObject/UnityEditorScripts/BoneMeshEraser Wizard")]
[MenuItem(SkinnedMeshUtility.MENU_KEY + "BoneMeshEraser Wizard", priority = SkinnedMeshUtility.MENU_PRIORITY)]
static void CreateWizard()
{
ScriptableWizard.DisplayWizard<BoneMeshEraserWizard>("BoneMeshEraser", "Erase triangles by bone", "Erase");

View File

@ -14,18 +14,17 @@ namespace VRM
[DisallowMultipleComponent]
public static class MeshIntegrator
{
const string MENU_KEY = "GameObject/UnityEditorScripts/MeshIntegrator";
const int MENU_PRIORITY = 0;
const string MENU_KEY = SkinnedMeshUtility.MENU_KEY + "MeshIntegrator";
const string ASSET_SUFFIX = ".mesh.asset";
const string ASSET_WITH_BLENDSHAPE_SUFFIX = ".blendshape.asset";
[MenuItem(MENU_KEY, true, MENU_PRIORITY)]
[MenuItem(MENU_KEY, true, SkinnedMeshUtility.MENU_PRIORITY)]
private static bool ExportValidate()
{
return Selection.activeObject != null && Selection.activeObject is GameObject;
}
[MenuItem(MENU_KEY, false, MENU_PRIORITY)]
[MenuItem(MENU_KEY, false, SkinnedMeshUtility.MENU_PRIORITY)]
private static void ExportFromMenu()
{
var go = Selection.activeObject as GameObject;

View File

@ -58,7 +58,7 @@ namespace VRM
[Header("Result")]
public Mesh integrated;
[MenuItem("GameObject/UnityEditorScripts/MeshInregrator Wizard")]
[MenuItem(SkinnedMeshUtility.MENU_KEY + "MeshInregrator Wizard", priority = SkinnedMeshUtility.MENU_PRIORITY)]
static void CreateWizard()
{
ScriptableWizard.DisplayWizard<MeshIntegratorWizard>("MeshIntegrator", "Integrate and close window", "Integrate");

View File

@ -0,0 +1,8 @@
namespace VRM
{
public static class SkinnedMeshUtility
{
public const string MENU_KEY = "GameObject/UnityEditorScripts/";
public const int MENU_PRIORITY = 11;
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: d66a91f4b51e42a6b165fe39fdb48d64
timeCreated: 1559541677