Evelyn GameDev Logo
Published on

Import the Vroid model into the Universal Render Pipeline and run it with the Third Person Character Controller in Starter Assets [Unity URP]

Authors
  • avatar
    Evelyn
Import the Vroid model into the Universal Render Pipeline and run it with the Third Person Character Controller in Starter Assets [Unity URP]

Please share this article if you like!

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.

demo

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.
vroid studio

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.

export vrm file

Create a URP (Universal Render Pipeline) project on UnityHub.

create a project of URP template

import URP-UniVRM

Access the URP-UniVRM github from the following link and download unitypackage file from the release.

Download link for URP-UniVRM
github of UniVrm

Drag and drop the downloaded UniVRM package file into UnityEditor, and the import dialog will appear.

And then, click the import button.

import URP-UniVrm

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.

import vroid model

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.

put vroid model to hierarchy

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
import Starter Assets - Third Person Character Controlle

Click on the Open button in Unity, the Package Manger will appear and click on the Import button.

package manager dialog

We now have all the necessary assets ready.

setup third person character controller

Change the Bloom parameter of the post-process as you like.

bloom

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.

prefab

Hides the Main Camera that was present in the hierarchy from the beginning.

You can also delete it.

main camera

Right-click on the prefab that you just added to the hierarchy to unpack it completely.

unpack prefab

Then remove the geometry and skeleton from the Player Armature child elements.

remove the geometry and skeleton

Move the Vroid model's game object to the position of the deleted game object and enter 0 in the Position of Transform.

remove the geometry and skeleton

Extract the Ground from the Example Assets that was prepared from the beginning and change its size so that the character can run.

ground

Drag and drop the Vroid avatar onto the Avatar of the Animator component of the PlayerArmature to apply it.

vrm avatar

After working up to this point, you should be able to control it with the keyboard or tap, as shown below.

demo

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.

icon of Evelyn
Import Vroid 3D models into Unity's URP (Universal Render Pipeline) to create richly rendered games!

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!

Please share this article if you like!