11. Export MYTY Avatar

MYTY Avatars have AssetBundles that can support Standalone(Mac/Win), iOS, Android, and WebGL. Use the AssetBundle Exporter to make your MYTY Avatars compatible with various platforms.

AssetBundle compatibility has been increased in MYTY Kit v1.0. Exporting Avatar AssetBundle as iOS and WebGL platforms is possible. For documentation on the previous version, see here.

๐Ÿ”ฅ Prerequisites

โœ… The following five modules should be included in the Unity Editor.

  • Android Build Support

  • iOS Build Support

  • Mac Build Support (IL2CPP)

  • WebGL Build Support

  • Windows Build Support (Mono)

If you have installed Unity Editor by following our installation guide on the 3. Install Unitypage, all required modules will already be installed.

Are these modules missing in Unity Editor?
  1. In the Installs tab of the Unity hub, click the โš™๏ธŽ icon next to the Unity Editor.

  2. Check the checkbox of the required module and click the Install button to add it.

Open the exporter window

  1. Open the Avatar Exporter window by selecting MYTY Kit > Export AssetBundle in the header tab.

  2. The Root Controller and all Motion Adapters created for the scene will be automatically referenced and shown in the window.

Can't see the Root Controller or Motion Adapters? Refer to the pages below, and try again. You may need to create a new Root Controller object and Motion Adapters.

AssetBundle Exporter window UI

  1. File Name: Give a name to the AssetBundle file to be exported.

  2. Avatar Selector: The Avatar Selector object created in the current project is automatically included.

  3. Main Camera: The camera showing the Avatar.

  4. Motion Template: The Motion Template containing Motion Data

  5. AR Option: You can set whether to include AR Face Mode in AssetBundle or to extract AssetBundle only in AR Face mode.

  6. Target Platform: You can choose which platform you want to export the AssetBundle for.

  7. Root Controllers: The Root Controller created in the current project is automatically referenced.

  8. Motion Adapters: The Motion Adapters created in the current project are automatically referenced.

  9. Export: Export the AssetBundle.

Set Variables and Export Avatar AssetBundle

  1. Create a File Name for the AssetBundle to be exported.

  2. Avatar Selector, Main Camera, Motion Template, Root Controllers, and Motion Adapters are automatically referenced and shown in the list. If the object(s) do not appear, click the โ˜‰ button to the right of each input box to manually add the required object.

  3. Set the AR Option if you want to or not. For more information on AR Face mode, please refer here.

  4. Choose the target platform for which you want to use the Avatar AssetBundle. If the target platform selection is disabled, see here.

  5. Click Export to create the Avatar AssetBundle.

  6. Once the export is complete, you can check the Standalone(Mac/Win), Android, iOS, and WebGL versions of the Avatar AssetBundle in Assets > MYTYAsset > ExportedBundle in the Project window.

Test your AssetBundle with MYTY Avatar Viewer

pageMYTY Avatar Viewer

Have a question or an idea? If you have a question to ask or an idea to share, participate in MYTY Kit Community. Weโ€™d love to hear from you.๐Ÿ˜„

Last updated