编辑窗口的短暂提醒信息
void OnWizardOtherButton(){
	GameObject[] objects = Selection.gameObjects;
	foreach (GameObject go in objects) {
		Undo.RecordObject (go, "change name");
		go.name += changeName;
	}
	//在这里
	ShowNotification (new GUIContent (Selection.gameObjects.Length + "个物体被修改了"));
}


ShowNotification是EditorWindow的一个成员方法,实例化了的窗口才可以使用

会直接在窗口的空白位置显示你要的提醒信息,参数是GUIContent类型的,封装了一层


首页 我的博客
粤ICP备17103704号