kingBook

导航

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");
	}
}

posted on 2020-05-07 10:25  kingBook  阅读(1026)  评论(0编辑  收藏  举报