mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-12 05:24:14 -05:00
Merge pull request #252 from Santarh/unityEditorScriptsItemPosition
Move UnityEditorScripts items to the bottom of menu.
This commit is contained in:
commit
2f566c7d01
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
namespace VRM
|
||||
{
|
||||
public static class SkinnedMeshUtility
|
||||
{
|
||||
public const string MENU_KEY = "GameObject/UnityEditorScripts/";
|
||||
public const int MENU_PRIORITY = 11;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d66a91f4b51e42a6b165fe39fdb48d64
|
||||
timeCreated: 1559541677
|
||||
Loading…
Reference in New Issue
Block a user