logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    ModelAnimationScanner
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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
    In this article
    © 2026 Serenity. All Rights Reserved