Avatar SDK Unity Cloud plugin  3.0.1
Realistic avatar generation toolset for Unity3D
Scene #06: WebGL Sample

This sample shows how the Avatar SDK plugin can be used in the WebGL applications.

There are some predefined sample photos for avatars generation. These photos are located in our cloud storage and retrieved by their URLs. Also, user can upload a photo from the local drive.

WebGL sample generates Head 1.2 avatars by default. If you need to change pipeline type, just modify the code in the WebglSample.cs script where the pipelineType variable is set:

private PipelineType pipelineType = PipelineType.HEAD_1_2;

Limitations

WebGL builds have some limitations:

  • WebGL applications work only on desktop browsers and don't support mobile devices. See the unity documentation about WebGL Browser Compatibility.
  • Avatars can't be converted to the OBJ or FBX formats because it requires native code execution in the browser.

See WebglSample.cs for implementation details.

Location: Assets/itseez3d/avatar_sdk/samples_cloud/06_webgl_sample/scenes/06_webgl_sample.unity.