コード例 #1
0
    //initalises the GUI
    static void Init()
    {
        selectedObject = Selection.activeObject;

        if (selectedObject == null)
        {
            return;
        }
        MakeAnimations window = (MakeAnimations)EditorWindow.GetWindow(typeof(MakeAnimations));

        window.Show();
    }
コード例 #2
0
    static void Init()
    {
        //Grab the active object
        selectedObject = Selection.activeObject;
        //If the object doesn't exist, do nothing
        if (selectedObject == null)
        {
            return;
        }
        //Otherwise, create a new window
        MakeAnimations window = (MakeAnimations)EditorWindow.GetWindow(typeof(MakeAnimations));

        //Show the window
        window.Show();
    }