|
1 | | -# unity-plugin |
| 1 | +# Sketchfab Plugin for Unity |
| 2 | + |
| 3 | +*Browse, import and export assets between Unity and Sketchfab* |
| 4 | + |
| 5 | +*Based on khronos' [UnityGLTF plugin](https://github.com/KhronosGroup/UnityGLTF), the fork is available [here](https://github.com/sketchfab/UnityGLTF)* |
| 6 | + |
| 7 | +This is a mirror repository for release only. |
| 8 | + |
| 9 | +***Supported versions**: 2018+ (LTS) (2019 LTS is recommended as it uses the updated UI for which the plugin has been updated)* |
| 10 | + |
| 11 | +A Sketchfab account is required for most of the plugin's features (you can [create one here](https://sketchfab.com/signup)) |
| 12 | + |
| 13 | + |
| 14 | +## Installation |
| 15 | + |
| 16 | +Download the [latest release](https://github.com/sketchfab/unity-plugin/releases/latest) and import it like a regular Unity Package by double clicking on it. The plugin will be imported into your Unity Project inside `Asset/Sketchfab For Unity`. |
| 17 | +**Please remove any existing Sketchfab plugin version before proceeding to avoid any conflict** |
| 18 | + |
| 19 | +## Report an issue |
| 20 | +If you have any issue, please visit [Report an issue](https://help.sketchfab.com/hc/en-us/requests/new?type=exporters&subject=Unity+Exporter) submit a support request. |
| 21 | + |
| 22 | +A link is also available at the bottom right in the plugin interface. |
| 23 | + |
| 24 | +## Sketchfab Asset Browser |
| 25 | + |
| 26 | +**Available in menu: Sketchfab/Browse Sketchfab** |
| 27 | + |
| 28 | +Browse, download, and import Sketchfab models directly into Unity editor. |
| 29 | + |
| 30 | +You have access to: |
| 31 | + * more than 500k free downloadable models under Creative Commons licenses |
| 32 | + * models purchased on the [Sketchfab store](https://sketchfab.com/store/3d-models) |
| 33 | + * If you have a [Pro account or higher](https://sketchfab.com/plans), you also have private access to all the models published on your Sketchfab account, without requiring them to be downloadable to other users. |
| 34 | + |
| 35 | +#### Authentication |
| 36 | + |
| 37 | +*You need a Sketchfab account to download and import models from Sketchfab* |
| 38 | + |
| 39 | +*You need a paid Sketchfab account (**PRO or higher**) to have a private access to your own models for download and import* |
| 40 | + |
| 41 | +#### Asset Browser UI |
| 42 | + |
| 43 | +Browse free Sketchfab downloadable models from the plugin using search and filters. |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | +Click on a thumbnail to show the corresponding model page with a button to download and import the asset |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | +##### Import options |
| 52 | + |
| 53 | +The model will be imported in your project directory and merged into a prefab. |
| 54 | + |
| 55 | +You can choose where to import the data in your project by setting **Import into** option. This parameter is set to `Assets/Import/{model_name}` by default (as shown in the screenshot). |
| 56 | + |
| 57 | +You can also specify a **Prefab name** for this model, and also choose to **instianciate the model in your scene** immediately after the import. |
| 58 | + |
| 59 | +Click the "Download model" button to start the operation which will first download the glTF asset of the model, and then import it into your Unity project. |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +## Sketchfab Exporter |
| 64 | + |
| 65 | +*Available in menu: Sketchfab/Publish to Sketchfab* |
| 66 | + |
| 67 | +Export and share your current Unity scene on Sketchfab. |
| 68 | +*You need a Sketchfab account to download and import assets from Sketchfab* |
| 69 | + |
| 70 | +Important note: glTF file format is used as transport between Unity and Sketchfab. |
| 71 | + |
| 72 | +Because of this, a few features will not be supported and will be missing on the Sketchfab result. |
| 73 | + |
| 74 | +The plugin will not export: |
| 75 | +* animations or object handled by custom scripts |
| 76 | +* custom materials/shaders |
| 77 | + |
| 78 | +Only Standard materials (including Specular setup) are supported. |
| 79 | + |
| 80 | +For animation, only Generic or Legacy animation type are exported. |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | +## glTF Importer (editor) |
| 85 | + |
| 86 | +Small tool to import any local glTF asset into Unity |
| 87 | +*Available in menu: Sketchfab/Import glTF* |
| 88 | + |
| 89 | +Drag and drop glTF asset on the importer window, set the import options and click import. |
| 90 | + |
0 commit comments