/// <summary> /// 在旁边绘制可以选择创建的节点,如果当前有选中的话绘制该节点的具体属性 /// </summary> void DrawNodesOnTheSide() { GUILayout.BeginArea(new Rect(position.width - 200, 0, 200, position.width)); DrawNodesToCreate(); if (curSelectedNode) { EditorGUILayout.Separator(); curSelectedNode.DrawProperty(); } GUILayout.EndArea(); }