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
{
}