Interface IAnimationEvent ​
Namespace: ValveResourceFormat.ResourceTypes.ModelAnimation
Assembly: ValveResourceFormat.dll
An event on an animation timeline, sampled by the player as it advances a clip. Implemented by
for sequences and by foranimation graph clips, which author their event times in different units but both carry a cycle.
csharp
public interface IAnimationEventProperties ​
Duration ​
Gets the duration in seconds of the event window. Zero for events that fire at a single point in time.
csharp
float Duration { get; }Property Value ​
StartCycle ​
Gets the position of the event as a fraction of the animation, zero being its start and one its end. This is what playback is sampled against, so the two formats compare in the same space.
csharp
float StartCycle { get; }Property Value ​
StartTime ​
Gets the time in seconds from the start of the animation at which the event fires. Zero for events that are not authored in seconds, see the implementation.
csharp
float StartTime { get; }
