示例#1
0
        private static void Init()
        {
            VRTK_ObjectSetup window = (VRTK_ObjectSetup)EditorWindow.GetWindow(typeof(VRTK_ObjectSetup));

            window.minSize = new Vector2(300f, 370f);
            window.maxSize = new Vector2(400f, 400f);

            window.autoRepaintOnSceneChange = true;
            window.titleContent.text        = "Setup Object";
            window.Show();
        }
示例#2
0
        //[MenuItem("Window/VRTK/Setup Interactable Object")]
        public static void Init()
        {
            Rect             wh     = new Rect(0, 0, 300, 420);
            VRTK_ObjectSetup window = (VRTK_ObjectSetup)EditorWindow.GetWindowWithRect(typeof(VRTK_ObjectSetup), wh, true, "策蓝科技便捷式开发助手->张兴");

            window.Show();
            //VRTK_ObjectSetup window = (VRTK_ObjectSetup)EditorWindow.GetWindow(typeof(VRTK_ObjectSetup));
            // window.minSize = new Vector2( 300f, 370f );
            //window.maxSize = new Vector2( 400f, 400f );
            //window.autoRepaintOnSceneChange = true;
            //window.titleContent.text = "配置VR物体ing";
            //window.Show();
        }