public void UpdateNodes() { ObjectsTree.Nodes.Clear(); CharcoalEngine.Object.Transform root = new CharcoalEngine.Object.Transform(); root.Children = scene.Root.Children; UpdateChildren(root, ObjectsTree.Nodes); }
public void UpdateChildren(CharcoalEngine.Object.Transform parent, TreeNodeCollection Nodes) { foreach (CharcoalEngine.Object.Transform obj in parent.Children) { Nodes.Add(obj.Name); Nodes[Nodes.Count - 1].Tag = obj; UpdateChildren(obj, Nodes[Nodes.Count - 1].Nodes); } }