浏览代码

inspector fix

/main
fzhangtj 6 年前
当前提交
e38b52cd
共有 2 个文件被更改,包括 11 次插入1 次删除
  1. 8
      Runtime/debugger/inspector_treeview.cs
  2. 4
      Runtime/debugger/inspector_window.cs

8
Runtime/debugger/inspector_treeview.cs


public override string displayName {
get { return this.node.name + this.node.description; }
get {
if (this.node.showName && !string.IsNullOrEmpty(this.node.name)) {
return $"{this.node.name}{this.node.separator} {this.node.description}";
}
return this.node.description;
}
}
}

4
Runtime/debugger/inspector_window.cs


window.Show();
}
void OnEnable() {
this.titleContent = new GUIContent("UIWidgets Inspector");
}
void OnGUI() {
EditorGUILayout.BeginHorizontal(EditorStyles.toolbar, GUILayout.ExpandWidth(true));
this.DoSelectDropDown();

正在加载...
取消
保存