Exemplo n.º 1
0
        static void Init()
        {
            SketchfabBrowser window = (SketchfabBrowser)EditorWindow.GetWindow(typeof(SketchfabBrowser));

            window.titleContent.text = "AssetBrowser";
            window.Show();
        }
Exemplo n.º 2
0
        static void Init()
        {
            SketchfabBrowser window = (SketchfabBrowser)EditorWindow.GetWindow(typeof(SketchfabBrowser));

            window.titleContent.image            = Resources.Load <Texture>("icon");
            window.titleContent.image.filterMode = FilterMode.Bilinear;
            window.titleContent.text             = "Browse";
            window.Show();
        }
        public void displayModelPage(SketchfabModel model, SketchfabBrowser browser)
        {
            _window = browser;
            if (_currentModel == null || model.uid != _currentModel.uid)
            {
                _currentModel    = model;
                _prefabName      = GLTFUtils.cleanName(_currentModel.name).Replace(" ", "_");
                _importDirectory = Application.dataPath + "/Import/" + _prefabName.Replace(" ", "_");
            }
            else
            {
                _currentModel = model;
            }

            _ui  = SketchfabPlugin.getUI();
            show = true;
        }