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

Public Types

enum  ImagesFormat { Body , Head }
 

Public Member Functions

void OnRefreshTargetDropdownButtonClick ()
 
void ResetAvatarSetDropdown ()
 

Static Public Member Functions

static void AddUi ()
 Load and instantiate the UI prefab from Resources.
 
static bool AddImportUI (out GameObject uiInstance)
 Add Avatar import ui to the scene.
 
static bool AddEventSystem (out GameObject eventSystemObj)
 Add event system in the scene.
 

Public Attributes

ImagesFormat PreviewImageMode = ImagesFormat.Body
 
Button CollapseButton
 
Dropdown TargetDropdown
 
Button RefreshTargetDropdownButton
 
Dropdown AvatarSetDropdown
 
Button FilterFemaleButton
 
Button FilterMaleButton
 
Button Filter10Button
 
Button Filter20Button
 
Button Filter30Button
 
Button Filter40Button
 
Button Filter50Button
 
Transform AvatarListContent
 
Toggle AutomaticCalibrationToggle
 
Button SelectAvatarButton
 

Properties

GameObject AvatarItemPrefab [get]
 
Texture DefaultPreviewTexture [get]
 
bool FilterMaleActivated [get, set]
 
bool FilterFemaleActivated [get, set]
 
bool Filter10Activated [get, set]
 
bool Filter20Activated [get, set]
 
bool Filter30Activated [get, set]
 
bool Filter40Activated [get, set]
 
bool Filter50Activated [get, set]
 
AvatarReadySetup[] AvatarReadySetups [get]
 

Private Types

enum  AvatarSet { AvatarGallery , LocalAvatars , ResourceAvatars }
 

Private Member Functions

void Awake ()
 
void Start ()
 
void Update ()
 
void OnCollapseButtonClick ()
 Collapse/Show the panel.
 
void ResetTargetDropdown ()
 
void OnTargetDropdownValueChanged (int newValue)
 
string ToString (AvatarSet set)
 
void OnAvatarSetDropdownValueChanged (int newValue)
 
IEnumerator RequestAvatarGalleryApi ()
 
void ResetAvatarListContent ()
 
void ResetAvatarListContext ()
 
void PopulateAvatarGalleryAvatarItems ()
 
void PopulateAvatarGalleryAvatarItemsAux (List< AvatarData > avatarList)
 
void OnAvatarItemClick (GameObject item, string avatarName)
 
IEnumerator SetPreviewImage (RawImage target, string url)
 
IEnumerator SetMatchingPreviewImage (RawImage target, string name)
 
void SetPreviewImage (RawImage target, Texture tex)
 
void OnFilterFemaleButtonClick ()
 
void OnFilterMaleButtonClick ()
 
void OnFilter10ButtonClick ()
 
void OnFilter20ButtonClick ()
 
void OnFilter30ButtonClick ()
 
void OnFilter40ButtonClick ()
 
void OnFilter50ButtonClick ()
 
void OnSelectAvatarButtonClick ()
 

Private Attributes

GameObject _avatarItemPrefab
 
Texture _defaultPreviewTexture
 
bool _filterMaleActivated = false
 
bool _filterFemaleActivated = false
 
bool _filter10Activated = false
 
bool _filter20Activated = false
 
bool _filter30Activated = false
 
bool _filter40Activated = false
 
bool _filter50Activated = false
 
AvatarReadySetup selectedTarget
 
string selectedAvatar
 
GameObject selectedAvatarItem
 
bool running = false
 
readonly Color defaultButtonColor = new Color(1, 1, 1, 0.3921569f)
 
readonly Color selectedButtonColor = new Color(0.3529412f, 0.7960784f, 1)
 
readonly Color waitingButtonColor = new Color(0.37f, 0.76f, 0.91f)
 
AvatarReadySetup[] _avatarReadySetups
 
AvatarSet selectedAvatarSet
 

Static Private Attributes

const string AvatarRuntimeImportUiPrefabName = "AvatarRuntimeImportUi"
 

Member Function Documentation

◆ AddImportUI()

static bool Inria.Avatar.AvatarReady.AvatarRuntimeImportUi.AddImportUI ( out GameObject uiInstance)
inlinestatic

Add Avatar import ui to the scene.

Parameters
uiInstanceUI instance in the scene
Returns
True if ui was added, Flase if allready in the scene
Exceptions
MissingComponentException

◆ AddEventSystem()

static bool Inria.Avatar.AvatarReady.AvatarRuntimeImportUi.AddEventSystem ( out GameObject eventSystemObj)
inlinestatic

Add event system in the scene.

Parameters
eventSystemObjEvent system in the scene
Returns
True if event system was added, false if allready in the scene

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