private NodeBaseInspector GetBaseInspector(NodeValue nodeValue) { NodeBaseInspector inspector = null; if (!_inspectorDic.TryGetValue((NODE_TYPE)nodeValue.NodeType, out inspector)) { inspector = nodeCompositeInspector; } inspector.SetNodeValue(nodeValue); return(inspector); }
public void Draw(NodeValue nodeValue) { if (null == nodeValue) { EditorGUILayout.LabelField("未选择节点"); return; } NodeBaseInspector nodeBaseInspector = GetBaseInspector(nodeValue); GUI.enabled = !BehaviorDataController.Instance.CurrentOpenConfigSubTree(); EditorGUILayout.BeginVertical("box"); { nodeBaseInspector.Draw(); } EditorGUILayout.EndVertical(); ParentInfo(); }