Feature: Added "Reset and Play" Button & Functionality:
Added a new UI button "Reset and Play" for each animation slot, positioned above the "Stop/Reset" button.
Implemented the ResetPlayAnimation function. This action now stops the animation, resets its playback time to 0, ensures associated marker triggers are reset, and immediately starts playback from the beginning.
Enhancement: Trigger Reset Logic:
Modified the existing "Stop/Reset" button functionality (StopResetAnimation) to also explicitly reset all associated marker triggers to the non-executed state.
Ensured the standard "Play" button (PlayAnimation) also resets triggers upon execution.
Bug Fix: Trigger at Time 0s:
Addressed issues with triggers set exactly at time 0.0s not firing reliably.
Implemented a workaround by modifying the marker time sliders:
The minimum value for marker sliders is now set slightly above zero (MinMarkerTimeEpsilon = 0.01f) when an animation clip is loaded.
The maximum value is set slightly below the clip length.