Editor------------------CustomEditor
来源:互联网 发布:淘宝跳失率怎么计算 编辑:程序博客网 时间:2024/06/05 20:13
Editor总览
CustormEditor一般与类Editor配合使用!以实现在Inspector面板中的自定义显示!
using UnityEngine;using System.Collections;using UnityEditor;[CustomEditor(typeof(myType))]public class menutest : Editor{ public override void OnInspectorGUI() {myType s = target as myType; // ........ }}
使用时有几个注意点:
1、CustomEditor + typeof + 类名
2、自定义类是Editor的派生类
3、绘制自定义UI要重写OnInspectorGUI函数。此函数是虚函数。
0 0
- Editor------------------CustomEditor
- CustomEditor
- CustomEditor 自定义预览窗
- Editor
- editor
- Editor
- Unity CustomEditor 自定义编辑脚本Inspector面板
- Unity CustomEditor 自定义编辑脚本Inspector面板
- Editor------------------Editor
- dconf-editor||gconf-editor
- html editor
- regx editor
- my editor
- my editor
- visual Editor
- ABAP Editor
- DFM Editor
- Editor study
- 中断子系统( 1)初始化
- IOS开发笔记-消息通信机制NSNotificationCenter
- Foundation框架 NSString
- 简单粗暴说ERP
- resin使用
- Editor------------------CustomEditor
- 2014 不算技术博客吧
- AngularJS 的 ngSwitch 指令 (directive) 使用陷阱
- 【Android】ADB常用指令与logcat日志
- string 和string& 做形参时的不同
- Oracle行专列函数Listagg()
- 重新开始战斗03-编程之美-买书问题
- 我对什么都感兴趣,可我迷茫了
- 《Java性能优化权威指南》