Beispiel #1
0
    public static void ShowWindow()
    {
        EditorWindow thisWindow = EditorWindow.GetWindow(typeof(TrackPadTool));

        thisWindow.position = new Rect(Screen.width / 2, Screen.height / 2, 400, 600);
        thisWindow.minSize  = new Vector2(400, 600);
        thisWindow.maxSize  = new Vector2(400, 600);

        EditorInputManager.CreateInputManager();

        /* Set Input Objects */
        InputObject = GameObject.Find("EditorInput");
    }
Beispiel #2
0
    public static void ShowWindow()
    {
        /* Create Window and lock size */
        EditorWindow thisWindow = EditorWindow.GetWindow(typeof(TrackNodeTool));

        thisWindow.position = new Rect(Screen.width / 2, Screen.height / 2, 400, 400);
        thisWindow.minSize  = new Vector2(400, 600);
        thisWindow.maxSize  = new Vector2(400, 600);

        EditorInputManager.CreateInputManager();

        /* Set Input Objects */
        InputObject = GameObject.Find("EditorInput");

        /* Create Node Information Objects */
        if (!GameObject.Find("NodeInformation"))
        {
            GameObject nodeInfo = new GameObject("NodeInformation");
            nodeInfo.AddComponent <TrackInformation>();
            nodeInfo.AddComponent <DrawNodeSpline>();
        }
    }