コード例 #1
0
        static void Init()
        {
            SketchfabModelWindow window = (SketchfabModelWindow)EditorWindow.GetWindow(typeof(SketchfabModelWindow));

            window.titleContent.text = "Model";
            window.Show();
        }
コード例 #2
0
        // Model page
        void displaySeparatedModelPage()
        {
            if (_skfbWin == null)
            {
                _skfbWin = ScriptableObject.CreateInstance <SketchfabModelWindow>();
                _skfbWin.displayModelPage(_browserManager.getModel(_currentUid), this);
                _skfbWin.position = new Rect(this.position.position, new Vector2(530, 660));
                _skfbWin.Show();
                _skfbWin.Repaint();
            }

            _skfbWin.displayModelPage(_browserManager.getModel(_currentUid), this);
            _skfbWin.Show();
            _skfbWin.Repaint();
        }