unity 编辑器扩展 扩展摄像机的属性查看器

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

public class CamerExtension : Editor {


	public override void OnInspectorGUI()
	{
		base.DrawDefaultInspector();

		if(GUILayout.Button("动身"))
		{
			
		}
	}
}


[CanEditMultipleObjects()]
[CustomEditor(typeof(Camera),true)]
public class CustomExtension:CamerExtension
{
	
}



posted @ 2017-08-10 23:12  yufenghou  阅读(388)  评论(0编辑  收藏  举报