UserData

[Last update: 01/30/2020]

Summary

UserData is a function that visualizes user data set in the model's ArtMesh on Unity.
User data is a function that allows arbitrary tags to be assigned to ArtMesh, which can be used to specify ArtMesh for special processing in the SDK.

For more information on user data, please click here.

To use user data on Unity, follow these steps.

  1. Parse .userdata3.json
  2. Set UserData for ArtMesh

1. Parse .userdata3.json

Parse .userdata3.json using CubismUserData3Json.
For more information about CubismUserData3Json, please click here .

 

The .userdata3.json path can also be obtained from .model3.json using CubismModel3Json.
The path you can get is relative to .model3.json.

For more information on CubismModel3Json, click here.

 

Get the ArtMesh data from the parsed .userdata3.json.

 

 

2. Set UserData for ArtMesh

Apply the user data obtained from .userdata3.json to the Prefab ArtMesh.

To add user data information to an ArtMesh, use the CubismUserDataTag.

© 2010 - 2022 Live2D Inc.