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
ModelClipDiscovery
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
Returns
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
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