Exemplo n.º 1
0
        void RebuildScene(InspectView view, bool recreateScene = true)
        {
            if (recreateScene)
            {
                Scene = new SCNScene();
            }
            else
            {
                currentViewNode?.RemoveFromParentNode();
            }

            currentViewNode = null;

            if (view != null)
            {
                currentViewNode = new InspectViewNode(view).Rebuild(
                    new TreeState(DisplayMode, ShowHiddenViews));

                Scene.Add(currentViewNode);

                Trackball.Target = Scene.RootNode;
            }

            Play(this);
        }
Exemplo n.º 2
0
        InspectViewNode BuildChild(InspectView view, TreeState state)
        {
            var childNode = new InspectViewNode(view, state.AddChild(view));

            Add(childNode);
            childNode.Rebuild(state);
            return(childNode);
        }