Example #1
0
    public override void OnInspectorGUI()
    {
        treeNodeStyle = new GUIStyle(EditorStyles.label);

        script = (VTKRoot)target;

        DrawDefaultInspector ();

        SelectFileMenu ();

        EditorGUILayout.Separator ();

        if (script.selectedFileIsValid)
        {
            FilterMenu();
        }

        EditorUtility.SetDirty (target);
    }
    public void Initialize()
    {
        this.flyStick = GameObject.Find ("FlyStick");
        this.root = gameObject.transform.parent.gameObject.GetComponent<VTKRoot> ();

        this.filter = node.filter;
        this.properties = node.properties;

        activeMode = mode.None;
        activeMenu = menu.None;
        activeParameter = 0;
        activeIndex = 0;
        playmodeParameter = null;
    }