Yahaha Assets Importer¶
Yahaha Assets Importer is a powerful plug-in that seamlessly imports prefabs and scenes from Unity into YAHAHA and binds them to your YAHAHA account. This tool enables you to import prefabs comprising meshes, textures (up to 512x512 pixels), and PBD Shader based on the Unity Universal Render Pipeline (URP) pipeline. Moreover, prefabs with humanoid and legacy animations can be imported as well, catering to your every need.
In this tutorial, we will lead you through the main steps of importing prefabs using Yahaha Assets Importer, including:
- Install Yahaha Assets Importer
- Add and build prefabs
- Import prefabs
- Manage imported prefabs
- Apply imported prefabs in Studio
Make sure that you have Unity version 2020.3.1 to 2020.3.31 installed, with 2020.3.30 being the recommended version. You can download the required version from the Unity download archive page or the LTS Release page.
All build platforms including Windows, macOS, Android, and iOS are installed. If you haven't installed them all, do so in the LTS Release page.
- Download Yahaha Assets Importer:
- Import Yahaha Assets Importer to Unity. For details on importing, see Import Package.
Before importing prefabs into Studio, you need to add and build them first in Yahaha Assets Importer.
Open Yahaha Assets Importer by choosing Yahaha Importer>Import Prefab in the top menu.
Log in to Yahaha Assets Importer with your YAHAHA account.
On the Build Prefabs tab choose + to add prefabs.
All of your Unity prefabs are displayed as a list. Select the prefabs you want to import to Studio and click Add to confirm.
Then select the prefab to build and choose Build to start building. While prefabs are being built, no actions are allowed. After they are successfully built, continue to build them.
After adding and building prefabs, import them into Studio by choosing the Import Prefabs tab, selecting the prefabs, then clicking Import All.
View imported prefabs on the Imported Prefabs tab. To delete an imported prefab, select or hover over it before clicking Delete.
To apply an imported Unity prefab to your scene:
In Studio find the prefabs you imported from Unity by choosing My Resource>Imported from Unity.
Download the prefab by clicking it, and then click it again to add it to the scene.
If your prefab contains animation, you need to attach a Monster component and an NPC Animation component to animate it. For more information, see Animating a model.