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

Public Member Functions

void OnRefreshAvatarsDropdownButtonClick ()
 Called by RefreshAvatarsDropdownButton on click. Search for new CalibrationTechniqueBehaviour in scene and refresh the ui.
 
void ResetUserDropdown ()
 Get every CalibrationProfile from the manager.
 
void OnUserDropdownValueChanged (int newValue)
 Show InputField according to the CalibrationTechnique and the data inside the profile.
 
void OnStartCalibrationProcessButtonClick ()
 
void OnApplyCalibrationButtonClick ()
 

Static Public Member Functions

static void AddUI ()
 Load and instantiate the UI prefab from Resources.
 
static bool AddCalibrationUI (out GameObject uiInstance)
 Add calibration UI To the scene.
 
static bool AddEventSystem (out GameObject eventSystemObj)
 Add event system in the scene.
 

Public Attributes

Button CollapseButton
 
Dropdown AvatarsDropdown
 
Button RefreshAvatarsDropdownButton
 
InputField CalibrationTechniqueNameValue
 
InputField CalibrationTechniqueDescValue
 
Dropdown UserDropdown
 
Button AddUserButton
 
Button DeleteUserButton
 
RectTransform UserDataContent
 
Button StartCalibrationProcessButton
 
Button ApplyCalibrationButton
 
GameObject NewProfilePanel
 
InputField NewProfileNameValue
 
Button CreateNewProfileButton
 
Button CancelNewProfileButton
 
GameObject MessagePanel
 
Text MessageText
 
UnityEvent< GameObject > OnAvatarCalibrated
 Called when the avatar is calibrated, the avatar gameObject is given in parameter.
 

Properties

AvatarReady[] AvatarReadys [get]
 
GameObject CalibrationDataPrefab [get]
 

Private Member Functions

void Awake ()
 
void Start ()
 
void OnCollapseButtonClick ()
 Collapse/Show the panel.
 
void ResetAvatarDropdown ()
 Search for every CalibrationTechnique in the scene.
 
void OnAvatarDropdownValueChanged (int newValue)
 Update informations of the selected CalibrationTechniqueBehaviour.
 
void UpdateCalibrationTechniquePanel ()
 
void AddDataUi (string key, float value, bool active)
 Instantiates an UI prefab to display a profile data.
 
void AddDataUiSeparator ()
 Add an empty UI object as visual separator.
 
string Nicify (string str)
 Transforms a variable name into a nice name that can be display.
 
void OnAddUserButtonClick ()
 Display the NewProfilePanel.
 
void OnDeleteUserButtonClick ()
 Delete the object and file of the selected profile, and then reload the dropdown.
 
void OnCreateNewProfileButtonClick ()
 
void OnCancelNewProfileButtonClick ()
 
IEnumerator CalibrationCoroutine (bool overrideProfile)
 
IEnumerator OnDelayedQuickCalibrateButtonClickCoroutine ()
 
void ShowMessage (string msg)
 
IEnumerator ToastMessage ()
 

Private Attributes

AvatarReady selectedAvatarReady = null
 
CalibrationProfile selectedCalibrationProfile = null
 
AvatarReady[] _avatarReadys
 
GameObject _calibrationDataPrefab
 

Static Private Attributes

const string CalibrationUiPrefabName = "CalibrationUi"
 

Member Function Documentation

◆ AddCalibrationUI()

static bool Inria.Avatar.AvatarReady.CalibrationUi.AddCalibrationUI ( out GameObject uiInstance)
inlinestatic

Add calibration UI To the scene.

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

◆ AddEventSystem()

static bool Inria.Avatar.AvatarReady.CalibrationUi.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: