protected ParentGUINode(ParentGUINode other) : base(other) { for (int i = 0; i < other.children.Count; i++) { GUINode element = other.children[i] as GUINode; GUINode copy = Activator.CreateInstance(element.GetType(), other.children[i]) as GUINode; copy.parent = this; } }
public void EleGUI(GUINode ele) { GUINodeEditor des = dic[ele.GetType()]; des.node = ele; des.OnSceneGUI(() => { for (int i = 0; i < ele.Children.Count; i++) { EleGUI(ele.Children[i] as GUINode); } }); }
public virtual void OnInspectorGUI() { insFold = FormatFoldGUI(insFold, "Element:" + node.GetType().Name, HeadGUI, ContentGUI); }