unity 自定义Project面板右键菜单
FbxAnimationSpliter.cs
using UnityEditor;
using UnityEngine;
public class FbxAnimationSpliter:Editor{
[MenuItem("Assets/Split FBX Animation",true)]
private static bool ValidateSplitFbxAnimation(){
return true;//验证,返回true菜单可用,返回false菜单灰色不可用
}
[MenuItem("Assets/Split FBX Animation")]
private static void SplitFbxAnimation(){
Debug.Log("SplitFbxAnimation");
}
}