static void Init() { SketchfabModelWindow window = (SketchfabModelWindow)EditorWindow.GetWindow(typeof(SketchfabModelWindow)); window.titleContent.text = "Model"; window.Show(); }
// 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(); }