---
# System prepended metadata

title: Avatar sample for F.T.

---

You can see this document at https://hackmd.io/hjrDP6coSIyCu3Gg9HCblA
# Avatar sample for F.T.

## Prepare project

New AvatarSDK is located under YourProject/Packages/AvatarSDK.
AvatarSDK is now dependent on **XR AcountSDK**, and this dependence will be removed in the future.
<br><br>

## Changeing in XRAvatarManager 
* Avatar outlook is not assoicated with prefab anymore.
* Please use XRAvatarManager.**SetAvatarInfo**(SytleLoadingInfo info) to setup avatar outlook.
* For testing purposes, SetAvatarInfo is now called in XRAvatarManager.Start(), but user should call  SetAvatarInfo() outside XRAvatarManager.
* **Avatar will be loaded only after SetAvatarInfo has been called.**

<br><br>
## Changing in Asset Bundle
Asset bundle source path is now etup automatically .



<br><br>
## Load simple avatar 
* open scene "Assets>AvatarPackage>AvatarDemoLoadSimpleAvatar>LoadSimple".
* check Avatar's component "XRAvatarManager".
<br><br><br>

## Descriptions of Classes,Prefabs,Objects 
* class XRAvatarManager : loading avatar & setting transform
* Prefab : Avatar1 ... Avatar9 

**Avatars prefab path** : Assets > AvatarPackage > AvatarDemo > LoadSimpleAvatar


<br><br><br>



## Animations
* **You can search following prefabs  under "Assets >AvatarPackages>Avatar>Resources>Animation"**.

* Male move foward clip : "m_t0_move_f" 
* Female move forward clip :"f_t0_move_f"
* Try other animation clips if you want.
<br><br><br>

## Build Apk
not tested yet, sorry
<br><br><br>

## Build Apk for Unity 2018.2
* Because there is a limitation of uncompressed file count, we have to change gradle setting.

* Select "Custom Gradle Template" under player setting.
![](https://i.imgur.com/6zzNiB7.png)

* Open file "Assets/Plugins/Android/mainTemplate.gradle"

 
* change 
```
    aaptOptions {
        noCompress '.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**
    }**SIGN**
```
   to 

```
    aaptOptions {
        noCompress '.unity3d', '.ress', '.resource', '.obb', '.bundle'
    }**SIGN**
```
