logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class ModelClipDiscovery

    Builds the deduplicated ClipEntry list for a scanned model: clips wired into the model's controllers (found by ModelAnimationScanner's state-machine walk), clips embedded in the source model asset, and — opt-in — loose clips found nearby in the model's own folder tree. A clip already reported under one origin is never reported again under a lower-priority one.

    Inheritance
    object
    ModelClipDiscovery
    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 ModelClipDiscovery

    Methods

    BuildClipList(IReadOnlyList<AnimationClip>, string, string, bool)

    Builds the full, deduplicated clip list. Priority order is wired, then embedded, then (when opted in) nearby — the same clip surfaced by more than one source is reported once, under its highest-priority origin.

    Declaration
    public static List<ClipEntry> BuildClipList(IReadOnlyList<AnimationClip> wiredClips, string sourceModelPath, string modelFolderPath, bool includeNearbyClips)
    Parameters
    Type Name Description
    IReadOnlyList<AnimationClip> wiredClips
    string sourceModelPath
    string modelFolderPath
    bool includeNearbyClips
    Returns
    Type Description
    List<ClipEntry>

    CollectEmbeddedClips(string)

    Every UnityEngine.AnimationClip sub-asset embedded in the source model, excluding Unity's internal preview clips.

    Declaration
    public static IReadOnlyList<AnimationClip> CollectEmbeddedClips(string sourceModelPath)
    Parameters
    Type Name Description
    string sourceModelPath
    Returns
    Type Description
    IReadOnlyList<AnimationClip>

    CollectNearbyClips(string)

    Every standalone UnityEngine.AnimationClip asset found anywhere under the model's own folder tree.

    Declaration
    public static IReadOnlyList<AnimationClip> CollectNearbyClips(string modelFolderPath)
    Parameters
    Type Name Description
    string modelFolderPath
    Returns
    Type Description
    IReadOnlyList<AnimationClip>
    In this article
    © 2026 Serenity. All Rights Reserved