Tanoda
|
Represents a sample that allows user loading Humanoid Animations with a File Picker. More...
Public Member Functions | |
void | LoadAnimation () |
Creates the AssetLoaderOptions instance and displays the Model file-picker. First we will point the Simple Animation Player Animations list to the loaded Animation Clips list. We will disable the AssetUnloader options since we want to keep the loaded Animation Clips in memory. We will disable Materials, Textures and Meshes importing since we just want the Humanoid Animations to be imported. We will add the Mixamo and Biped built-in Humanoid Avatar Mapper. We will add am Animation Clip Mapper used to convert Legacy to Humanoid Animations and a Generic Animation playback Component to the Model. More... | |
Public Attributes | |
SimpleAnimationPlayer | OriginalModelSimpleAnimationPlayer |
Simple Animation Player component located on the existing Model in the Scene. The Simple Animation Player is used to play Generic/Humanoid Animations based on their names or indices. More... | |
AnimationClip | MecanimAnimationClipTemplate |
Template mecanim animation clip. Unity runtime API can't access mecanim animation clip settings as root motion baking, animation loop mode, etc. So we get these settings from the template animation clip. More... | |
Represents a sample that allows user loading Humanoid Animations with a File Picker.
Definition at line 16 of file LoadHumanoidAnimationFromFilePicker.cs.
void TriLibCore.Samples.LoadHumanoidAnimationFromFilePicker.LoadAnimation | ( | ) |
Creates the AssetLoaderOptions instance and displays the Model file-picker. First we will point the Simple Animation Player Animations list to the loaded Animation Clips list. We will disable the AssetUnloader options since we want to keep the loaded Animation Clips in memory. We will disable Materials, Textures and Meshes importing since we just want the Humanoid Animations to be imported. We will add the Mixamo and Biped built-in Humanoid Avatar Mapper. We will add am Animation Clip Mapper used to convert Legacy to Humanoid Animations and a Generic Animation playback Component to the Model.
You can create the AssetLoaderOptions by right clicking on the Assets Explorer and selecting "TriLib->Create->AssetLoaderOptions->Pre-Built AssetLoaderOptions".
Definition at line 63 of file LoadHumanoidAnimationFromFilePicker.cs.
AnimationClip TriLibCore.Samples.LoadHumanoidAnimationFromFilePicker.MecanimAnimationClipTemplate |
Template mecanim animation clip. Unity runtime API can't access mecanim animation clip settings as root motion baking, animation loop mode, etc. So we get these settings from the template animation clip.
Definition at line 28 of file LoadHumanoidAnimationFromFilePicker.cs.
SimpleAnimationPlayer TriLibCore.Samples.LoadHumanoidAnimationFromFilePicker.OriginalModelSimpleAnimationPlayer |
Simple Animation Player component located on the existing Model in the Scene. The Simple Animation Player is used to play Generic/Humanoid Animations based on their names or indices.
Definition at line 22 of file LoadHumanoidAnimationFromFilePicker.cs.