Class ModelAnimationScanner
Reads the full animation setup of a model asset (a prefab, a prefab variant, or an imported model) straight off the loaded prefab asset — never UnityEditor.PrefabUtility.LoadPrefabContents(System.String), whose instantiated hierarchy is destroyed on unload and would leave every reference in the returned ModelAnimationInventory dangling.
Inherited Members
Namespace: Serenity.Editor.AnimationHub.Discovery
Assembly: Serenity.AnimationHub.Editor.dll
Syntax
public static class ModelAnimationScanner
Methods
Scan(GameObject, ScanOptions)
Builds the full animation inventory for model.
Declaration
public static ModelAnimationInventory Scan(GameObject model, ModelAnimationScanner.ScanOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | model | |
| ModelAnimationScanner.ScanOptions | options |
Returns
| Type | Description |
|---|---|
| ModelAnimationInventory |