Skip to content

@modoki/engine / index / resolveAnimSetParams

Function: resolveAnimSetParams()

resolveAnimSetParams(ref, clipName): ResolvedAnimParams

Resolve the playback params for a named clip within an animset, with engine defaults filled for every field. ALWAYS returns a full param object:

  • empty ref / not-yet-loaded / clip not listed → engine defaults
  • clip listed → its fields merged over engine defaults

So driveAnimator can apply field !== default ? perEntity : resolved.field uniformly: with no animset the resolved value IS the default, so the per-entity field always wins (today's behaviour); with an animset, leaving a field at its default inherits the per-clip value.

Parameters

ref

string

clipName

string

Returns

ResolvedAnimParams

Built with Modoki.