Avatar SDK Unity Cloud plugin  3.0.1
Realistic avatar generation toolset for Unity3D
How To Export Models

Full Body

Available formats: GLTF, GLB, FBX, PLY, OBJ.
To export a full body model, run the Full Body Export Sample, configure export parameters and generate an avatar. The avatar will be downloaded from the Cloud in the specified format.

Animated Face, Head 1.2, Head 2.0

Available Formats
These avatars are downloaded from the Cloud in the PLY format. Converting to other formats is performed locally. So there are some limitations dependent on the platform where the plugin is run.

Platform FBX (Editor Mode) FBX (Play Mode) GLTF GLB OBJ PLY
Windows + + + + + +
MacOS - + + + + +
iOS - - - - - -
Android - - - - - -
WebGL - - - - - -

If you need to export models on any of unavailable platforms, please contact us regarding it: suppo.nosp@m.rt@a.nosp@m.vatar.nosp@m.sdk..nosp@m.com

To export a model in OBJ or FBX, run the Parameters Sample, generate an avatar and open it. The Avatar Viewer scene will be shown and there will be export buttons.

Using Model Exporter Component

Also you can export a model from your own scene or create a prefab. Just add the ModelExporter component to the avatar object.

model_exporter.jpg
Model Exporter

The following properties are available:
Model: Game Object with avatar.
Mesh Format: mesh format (FBX, GLTF, GLB, OBJ or PLY).
Save Blendshapes: enable this option to export blendshapes. Blendshapes are exported in the same format as the avatar mesh. For FBX, GLTF and GLB blendshapes are embedded into the avatar mesh.
Single Mesh: enable this option to merge the head and the haircut into a single mesh.
Extract Roughness Texture: enable this option, if you need to save the roughness map rather that the glossiness map.

You can use the following code to export the model:

public void ExportModel(string outputDir, GameObject avatarObject)
{
ModelExporter modelExporter = avatarObject.AddComponent<ModelExporter>();
modelExporter.meshFormat = MeshFileFormat.GLTF;
modelExporter.singleMesh = true;
modelExporter.saveBlendshapes = true;
modelExporter.ExportModel(outputDir);
}