Struct SampledEvent ​
Namespace: ValveResourceFormat.Animation
Assembly: ValveResourceFormat.dll
One event sampled during a graph update: either an animation event coming from a clip's timeline, or a graph event emitted by a state (entry/execute/exit/timed).
public struct SampledEventProperties ​
AnimEvent ​
The clip event, for animation events.
public Event? AnimEvent { readonly get; init; }Property Value ​
GraphEventType ​
The kind of graph event, for graph events.
public GraphEventType GraphEventType { readonly get; init; }Property Value ​
ID ​
Graph event ID, or the ID of an ID animation event; default otherwise.
public StringToken ID { readonly get; init; }Property Value ​
IsAnimationEvent ​
Whether this is an animation event from a clip.
public readonly bool IsAnimationEvent { get; }Property Value ​
bool
IsFromActiveBranch ​
Whether the event came from the active branch of a state machine.
public bool IsFromActiveBranch { readonly get; set; }Property Value ​
bool
IsGraphEvent ​
Whether this is a graph event rather than an animation event.
public bool IsGraphEvent { readonly get; init; }Property Value ​
bool
IsIgnored ​
Whether the event should be ignored.
public bool IsIgnored { readonly get; set; }Property Value ​
bool
PercentageThrough ​
How far through the event we are, in [0, 1].
public float PercentageThrough { readonly get; init; }Property Value ​
float
SourceNodeIdx ​
The index of the node that sampled the event.
public short SourceNodeIdx { readonly get; init; }Property Value ​
short
Weight ​
Blend weight of the branch that sampled this event.
public float Weight { readonly get; set; }Property Value ​
float

