Getting Started: Streaming to Unity

For any workflow related issues, join our Discord server.

Forward real-time data to your Character in Unity!

Requirements

Getting Started

1. Open Rokoko Studio Live.

2. Go to settings and click on Studio Live in the dropdown menu.

3. Turn on streaming to Unity by enabling the plugin and enabling the default IP and port. 

Setting up the character

Drag your desired character into Unity, and change the Rig Type to Humanoid in the Inspector panel and click "apply" at the bottom.

Drag your character into the scene view and place it in XYZ, 0,0,0.

In the Inspector panel add the "Actor" component to your character. In the "Profile Name" parameter add the name of the Actor Profile in Rokoko Studio that you want to receive the data from. In our case it is "Demo".

Click on the "Self" button next to the Animator Parameter. 

Face Capture

To get face capture working on your character (given that it follows the ARkit blendshape structure) add the "Face" component to the character. Set the "Mesh Renderer" to the skinned mesh of your character.

Then in the "Face" parameter of the "Actor" script click on the "Self" button. You should now see it be populated with the right settings. 

This is the final configuration of our character in the inspector panel.

Streaming the data

Go to your Hierarchy panel and create an empty gameobject and call it "Studio Manager". Add the "Studio Manager" component to the newly created gameobject. Set the "Receive Port" to the streaming port set inside of Rokoko Studio. The default is 14043.

Press play and you should now see your character moving according to the streamed data.

Articles in this section

Knowledge base