pub enum PriorityMode {
OverwriteOnNextKeyframe,
HoldUntilNextAnimation,
Permanent,
}Expand description
Keyframe-vs-override precedence for the attributes that conflict with the animation (Color and Cell). Visibility has no priority mode.
Variants§
OverwriteOnNextKeyframe
A temporal one-shot handover. The override wins from the moment it
is set until playback decodes a surviving keyframe of that attribute —
detected by watching the controller’s actually-traversed frames
(get_passed_frames) for a key frame. This is section / loop / reverse /
ping-pong correct for free: only frames the playhead really visits count,
and the loop wraps to the section start, so keys outside the play range
never trigger it. The override’s own set-frame keyframe is ignored through
the update of its first evaluation, so setting on a keyframe wins that
keyframe’s segment, however many times that update’s frame is evaluated.
At handover the slot is dropped, so it does not reappear (only a re-set
reactivates it). If the play range decodes no key of that
attribute, the override persists like Permanent. The “surviving key”
wording matters: the converter prunes flat-hold duplicates, so handover
lands on a key that actually shapes the curve. Cleared on a new animation.
HoldUntilNextAnimation
Wins for the current animation; cleared on a new one.
Permanent
Wins and persists across animation changes (re-validated by index range within the same SSAB).