Welcome to Evelyn GameDev Blog!!
To use the Vroid model in Unity, use the package UniVRM.
However, the shaders in UniVRM do not support the Universal Render Pipeline (URP).
In this article, we will replace the Vroid shaders with ones that work with URP, and use the Starter Assets distributed by the official Unity distribution to move the Vroid character.
The final screenshot looks like the following.
It is also explained in a video. The video is about 5 minutes long, so please feel free to watch it.
Table of Contents
export vrm file of vroid 3d model
If you are reading this article, I assume you already have a 3D model of the Vroid.
However, if you don't have one, you can download Vroid Studio from the link below.Click here for the Vroid Studio download site.
Click on the character of your choice from the startup screen, and the character editing screen will appear.
You can download the vrm file by clicking the Export button referring to the following screen.
Create a URP (Universal Render Pipeline) project on UnityHub.
Access the URP-UniVRM github from the following link and download unitypackage file from the release.Download link for URP-UniVRM
Drag and drop the downloaded UniVRM package file into UnityEditor, and the import dialog will appear.
And then, click the import button.
import Vroid model
Now that you are ready to import the vrm file of the Vroid model into URP, create a new folder and drag and drop the vrm file into UnityEditor to import it.
Let's further add the 3D model data to the hierarchy and change the x-coordinate of the position.
You can see that the shaders are working properly.
import Starter Assets - Third Person Character Controller
Then, it's time to prepare the character for movement.
We will use an asset called Starter Assets - Third Person Character Controller.
This asset was created as a replacement for the Standard Assets that were previously distributed by Unity.Starter Assets - Third Person Character Controller
Click on the Open button in Unity, the Package Manger will appear and click on the Import button.
We now have all the necessary assets ready.
setup third person character controller
Change the Bloom parameter of the post-process as you like.
Open the Prefab folder in the Third Person Controller folder of Starter Assets, and drag and drop the second prefab from the left onto the hierarchy.
Hides the Main Camera that was present in the hierarchy from the beginning.
You can also delete it.
Right-click on the prefab that you just added to the hierarchy to unpack it completely.
Then remove the geometry and skeleton from the Player Armature child elements.
Move the Vroid model's game object to the position of the deleted game object and enter 0 in the Position of Transform.
Extract the Ground from the Example Assets that was prepared from the beginning and change its size so that the character can run.
Drag and drop the Vroid avatar onto the Avatar of the Animator component of the PlayerArmature to apply it.
After working up to this point, you should be able to control it with the keyboard or tap, as shown below.
Summary of this article
Vroid is very useful and I would like to use it actively.
In particular, Unity's URP allows you to use the Visual Effect Graph (VFX Graph), which allows you to visually create effects, so you can create richer Vroid games.
I hope you will try to create a game with Vroid characters.
That was Evelyn's message.
If you would like your 3D character to collaborate with my game, please feel free to contact me.
Thank you for reading to the end. I hope to see you again in another article!