比如编辑模式下对场景或者特定文件夹有一些操作可以在这个面板里来完成.. 代码如下. using UnityEngine; using System.Collections; using UnityEditor; [CustomEditor(typeof(UnityEditor.DefaultAsset))] public class CustomInspector : Editor { public override void OnInspectorGUI () { string path =
博客转移到 http://jacean.github.io/ 继续分享编程经验 因为要做流体布局,但两个控件没办法组合,就做自定义控件.这个控件需要一个text设置文本,一个pic设置图片显示,图片通过选择获取,在属性面板里能够修改. 添加用户控件之后就可以自己随意设置控件内容了,这里说下关于属性的一些设置. 自定义控件显示在工具箱的开关:将true改为false就可以不显示了. [ToolboxItem(true)] public partial class UserControl1 : Us
1. html <select ng-model="selectOrderState" style="border:none;left:0" ng-options="state.name for state in orderStates"></select> 2. js //订单状态 $scope.orderStates=[ {name:'全部',id:""}, {name:'等待审核',id:&quo