Published on

Import 3D characters into Unity and run them (Vroid Studio / Unity)

Authors
  • Evelyn

Please share this article if you like!

Vroid is a very popular tool created by pixiv. Vroid is a very popular tool created by pixiv, and many people have become vtubers using 3D characters created with Vroid Studio.

Let's import the 3D character we created using Vroid Studio into a Unity project and run it.

I want to incorporate my own 3D characters into the game I'm developing.

This article will help you meet those needs.

I also use Blender to customize Vroid-based 3D characters for youtube and game development.

I also have a youtube video explaining the process, so if you have any questions along the way, I hope you'll watch the video.


Goal of this article

Let's output the vrm file of the 3D character in Vroid Studio and run it in Unity.


Table of Contents

Articles you should also read

The following articles about Vroid and Unity are recommended for you.

If you want to make Vroid look like an animation style.

If you want your Vroid to have a sword.

Exporting 3D characters in Vroid Studio

First, you need to download Vroid Studio to your PC. Vroid Studio is free to use. Vroid Studio is free to use, and you can use the characters you create for commercial purposes.

Click here for the Vroid Studio download site.

After starting Vroid Studio, you will see a screen like the following image. We are going to use a sample avatar without character making this time. Select your favorite character and open it.

Click on the Camera / Exporter tab, and then press the Export button.

A dialog box will appear. Enter the necessary information and click the Export button.

Save the vrm file to a location of your choice.

Now that we have the data for the 3d character, let's move on to the Unity editor and get to work.

Importing a vrm file

To get the vrm file into Unity, use the following package.

UniVrm

releases page of UniVRM
Download link for UniVrmn

Drag and drop the UniVrm package into your Unity project and click the Import button.

Drag and drop the vrm file to import the 3d character data into the Unity project.

Expand the 3D character in a hierarchical manner.

Create a 3D object Plane and increase its size to create a floor that the character can move around on.

Move the character

Now that the character is ready, the next step is to prepare it for movement.

Standard Assets

Standard Assets
url of Standard Assets

Open Standard Assets in the Package Manager and import it into your project.

Standard Assets has an error by default, so let's fix it. Double-click on it to open the script in Visual Studio and edit it.

Change GUIText to UnityEngine.UI.Text to fix the error.

Add the Third Person User Control to the 3D character as shown in the following image. Then, the Capsule Collider and Third Person Character will be added automatically.

Click on Edit Collider, and change the size of the Capsule Collider so that it matches the shape of the character.

Apply the leadingPersonAnimatorController to the Animation's Controller.

Now that you've done all this, let's run it and check it out! We have confirmed that the character moves in response to keyboard input.

Make the camera follow the character's movements.

Finally, change the main camera so that it follows the character.

Use the MMultipurposeCameraRig in the Camera prefabs of Standard Assets. Deactivate the main camera that exists by default and change the z-axis value of the prefab's main camera to move the camera closer to the character.

Apply a 3D character to the AutoCam target in MultipurposeCameraRig. All work is now complete.

Finally, I was able to run it and confirm that the camera follows the character.

With Vroid Studio, it is relatively easy to incorporate your favorite characters into your game development. I hope it will be useful to you in your game development.

Easily create your own unique character and incorporate it into your game!

Please share this article if you like!