Tanoda
|
Represents a TriLib sample which allows the user to load and control a custom avatar. More...
Public Member Functions | |
void | LoadAvatarFromFile () |
Shows the file picker so the user can load an avatar from the local file system. More... | |
![]() | |
void | ShowHelp () |
Shows the help box. More... | |
void | HideHelp () |
Hides the help box. More... | |
void | ShowModelUrlDialog () |
Shows the model URL dialog. More... | |
void | HideModelUrlDialog () |
Hides the model URL dialog. More... | |
void | LoadModelFromURLWithDialogValues () |
Shows the URL selector for loading a model from network. More... | |
virtual void | PlayAnimation () |
Plays the selected animation. More... | |
virtual void | StopAnimation () |
Stops playing the selected animation. More... | |
virtual void | PlaybackAnimationChanged (int index) |
Switches to the animation selected on the Dropdown. More... | |
virtual void | PlaybackSliderChanged (float value) |
Event triggered when the animation slider value has been changed by the user. More... | |
Protected Member Functions | |
override void | OnMaterialsLoad (AssetLoaderContext assetLoaderContext) |
Event triggered when the Model (including Textures and Materials) has been fully loaded. More... | |
override void | Start () |
Configures the avatar loading and adjusts avatar size factor based on the existing avatar. More... | |
![]() | |
void | UpdateCamera () |
Updates the Camera based on mouse Input. More... | |
void | LoadModelFromFile (GameObject wrapperGameObject=null, Action< AssetLoaderContext > onMaterialsLoad=null) |
Shows the file picker for loading a model from local file-system. More... | |
void | LoadModelFromURL (UnityWebRequest request, string fileExtension, GameObject wrapperGameObject=null, object customData=null, Action< AssetLoaderContext > onMaterialsLoad=null) |
Loads a model from a URL. More... | |
virtual void | OnBeginLoadModel (bool hasFiles) |
Event triggered when the user selects a file or cancels the Model selection dialog. More... | |
void | SetLoading (bool value) |
Enables/disables the loading flag. More... | |
virtual void | Start () |
Checks if the Dispatcher instance exists and stores this class instance as the Singleton. More... | |
virtual void | OnProgress (AssetLoaderContext assetLoaderContext, float value) |
Event is triggered when the Model loading progress changes. More... | |
virtual void | OnError (IContextualizedError contextualizedError) |
Event is triggered when any error occurs. More... | |
virtual void | OnLoad (AssetLoaderContext assetLoaderContext) |
Event is triggered when the Model Meshes and hierarchy are loaded. More... | |
virtual void | OnMaterialsLoad (AssetLoaderContext assetLoaderContext) |
Event is triggered when the Model (including Textures and Materials) has been fully loaded. More... | |
Additional Inherited Members | |
![]() | |
Vector2 | CameraAngle |
Current camera pitch and yaw angles. More... | |
![]() | |
Slider | PlaybackSlider |
Animation playback slider. More... | |
Text | PlaybackTime |
Animation playback time. More... | |
Dropdown | PlaybackAnimation |
Animation selector. More... | |
Selectable | Play |
Play button. More... | |
Selectable | Stop |
Stop button. More... | |
AssetLoaderOptions | AssetLoaderOptions |
Options used in this sample. More... | |
![]() | |
const float | InputMultiplierRatio = 0.1f |
Mouse input multiplier. Higher values will make the mouse movement more sensible. More... | |
const float | MaxPitch = 80f |
Maximum camera pitch and light pitch (rotation around local X-axis). More... | |
![]() | |
static AssetViewerBase | Instance [get] |
Gets the Asset Viewer Singleton instance. More... | |
GameObject | RootGameObject [get, protected set] |
Loaded game object. More... | |
Represents a TriLib sample which allows the user to load and control a custom avatar.
Definition at line 10 of file AvatarLoader.cs.
void TriLibCore.Samples.AvatarLoader.LoadAvatarFromFile | ( | ) |
Shows the file picker so the user can load an avatar from the local file system.
Definition at line 20 of file AvatarLoader.cs.
|
protectedvirtual |
Event triggered when the Model (including Textures and Materials) has been fully loaded.
assetLoaderContext | The Asset Loader Context reference. Asset Loader Context contains the Model loading data |
Reimplemented from TriLibCore.Samples.AssetViewerBase.
Definition at line 30 of file AvatarLoader.cs.
|
protectedvirtual |
Configures the avatar loading and adjusts avatar size factor based on the existing avatar.
Reimplemented from TriLibCore.Samples.AssetViewerBase.
Definition at line 49 of file AvatarLoader.cs.