AvatarReady
Loading...
Searching...
No Matches
Inria.Avatar.AvatarReady.AvatarExplorer Class Reference
Inheritance diagram for Inria.Avatar.AvatarReady.AvatarExplorer:

Public Types

enum  AvatarOrigin { Local , AvatarGalery }
 

Public Member Functions

void CreateGUI ()
 

Static Public Member Functions

static void ShowExample ()
 

Private Member Functions

void Setup ()
 
void DisplayProvider ()
 Display list of provider depending of current avatar origin.
 
void DisplayProvider (List< AvatarData > avatars)
 Parse list of avatars to get available providers.
 
void DisplayFilters ()
 Display list of filters depending of current avatar origin.
 
void DisplayFilters (List< AvatarData > avatars)
 Parse list of avatars to get available filters.
 
void DisplayAvatars ()
 Display list of avatars depending of current avatar origin.
 
void DisplayCachedAvatars (ScrollView scrollView)
 Display avatars present in cache.
 
void DisplayGalleryAvatars (ScrollView scrollView)
 Display avatars from avatar gallery api.
 
void AvatarGalleryResult (UnityWebRequest.Result result, ScrollView scrollView)
 Callback from RequestAvatarGalleryJson, display available avatars from Avatar gallery.
 
void LoadNextPanel ()
 Use an action queue to limit simultanious calls when downloading avatars preview images.
 
void AddAvatarDataPanel (ScrollView scrollView, VisualTreeAsset asset, AvatarData data, AvatarOrigin origin, UnityAction CallBack=null)
 Setup an avatar pannel for an avatar.
 
void UpdateAvatar (ClickEvent evt, Button avatarButton, AvatarData data)
 Check if avatar is in cache folder and update "load avatar" button accordingly.
 
void FilterAvatars (ref List< AvatarData > data)
 Filter list of avatars using current filters.
 

Private Attributes

Queue< UnityAction > actionQueue
 
AvatarOrigin currentOrigin
 
string provider = "Any"
 
string genderFilter = "Any"
 
string ageFilter = "Any"
 

Static Private Attributes

const int maxSimultaneousCalls = 5
 

Member Function Documentation

◆ DisplayFilters()

void Inria.Avatar.AvatarReady.AvatarExplorer.DisplayFilters ( List< AvatarData > avatars)
inlineprivate

Parse list of avatars to get available filters.

Parameters
avatars

◆ AddAvatarDataPanel()

void Inria.Avatar.AvatarReady.AvatarExplorer.AddAvatarDataPanel ( ScrollView scrollView,
VisualTreeAsset asset,
AvatarData data,
AvatarOrigin origin,
UnityAction CallBack = null )
inlineprivate

Setup an avatar pannel for an avatar.

Parameters
scrollViewscroll view to add avatar pannel to
assetPannel asset to instantiate
dataAvatar data of displayed avatar
originCurrent avatar origin
CallBackCallback when avatar has been added

The documentation for this class was generated from the following file: