Exemple #1
0
        public static void OpenWindow(TFPhysicsScene pScene)
        {
            scene = pScene;
            tree  = scene.dynamicTree;
            DynamicTreeViewerEditor window = GetWindow <DynamicTreeViewerEditor>();

            window.titleContent = new GUIContent("Dynamic Tree");
        }
        public override void OnInspectorGUI()
        {
            t = (TFPhysics)target;

            DrawDefaultInspector();

            if (GUILayout.Button("View Dynamic Tree", GUILayout.Width(150)))
            {
                DynamicTreeViewerEditor.OpenWindow(TFPhysics.physicsScene);
            }
        }