Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
        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);
                }
            });
        }
Exemplo n.º 3
0
 public virtual void OnInspectorGUI()
 {
     insFold = FormatFoldGUI(insFold, "Element:" + node.GetType().Name, HeadGUI, ContentGUI);
 }