Tanoda
|
Represents a TriLib sample which allows the user to load models from a website and switch between them to build a 3D face. More...
Public Member Functions | |
void | PreviousPart (string partName) |
Switches to the previous part. More... | |
void | NextPart (string partName) |
Switches to the next part. 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 | Start () |
Checks if the Dispatcher instance exists, stores this class instance as the Singleton and load all area parts. More... | |
override void | OnError (IContextualizedError contextualizedError) |
Event triggered when there is any Model loading error. More... | |
override void | OnMaterialsLoad (AssetLoaderContext assetLoaderContext) |
Event triggered when the Model and all its resources loaded. More... | |
override void | OnLoad (AssetLoaderContext assetLoaderContext) |
Event triggered when the Model Meshes and hierarchy are loaded. 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 models from a website and switch between them to build a 3D face.
Definition at line 12 of file FaceBuilder.cs.
void TriLibCore.Samples.FaceBuilder.NextPart | ( | string | partName | ) |
Switches to the next part.
partName | The area name to switch (hair, eyes, nose or mouth). |
Definition at line 47 of file FaceBuilder.cs.
|
protectedvirtual |
Event triggered when there is any Model loading error.
contextualizedError | The Contextualized Error that has occurred. |
Reimplemented from TriLibCore.Samples.AssetViewerBase.
Definition at line 137 of file FaceBuilder.cs.
|
protectedvirtual |
Event triggered when the Model Meshes and hierarchy are loaded.
assetLoaderContext | The Asset Loader Context reference. Asset Loader Context contains the Model loading data. |
Reimplemented from TriLibCore.Samples.AssetViewerBase.
Definition at line 180 of file FaceBuilder.cs.
|
protectedvirtual |
Event triggered when the Model and all its resources loaded.
assetLoaderContext | The Asset Loader Context reference. Asset Loader Context contains the Model loading data. |
Reimplemented from TriLibCore.Samples.AssetViewerBase.
Definition at line 159 of file FaceBuilder.cs.
void TriLibCore.Samples.FaceBuilder.PreviousPart | ( | string | partName | ) |
Switches to the previous part.
partName | The area name to switch (hair, eyes, nose or mouth). |
Definition at line 38 of file FaceBuilder.cs.
|
protectedvirtual |
Checks if the Dispatcher instance exists, stores this class instance as the Singleton and load all area parts.
Reimplemented from TriLibCore.Samples.AssetViewerBase.
Definition at line 124 of file FaceBuilder.cs.