Struct SyncTrack.Event ​
Namespace: ValveResourceFormat.Animation
Assembly: ValveResourceFormat.dll
A named sync period of a sync track.
csharp
[SuppressMessage("Naming", "CA1716:Identifiers should not match keywords", Justification = "Named after the sync track event it is read from")]
public readonly struct SyncTrack.EventConstructors ​
Event(StringToken, float, float) ​
Creates an event from an ID, start percentage and duration percentage.
csharp
public Event(StringToken id, float startTime, float duration)Parameters ​
id StringToken
startTime float
duration float
Event(KVObject) ​
Reads the Event from its KeyValues3 data.
csharp
public Event(KVObject data)Parameters ​
data KVObject
Properties ​
Duration ​
How long the event lasts, as a percentage of the track.
csharp
public Percent Duration { get; }Property Value ​
ID ​
The event ID.
csharp
public StringToken ID { get; }Property Value ​
StartTime ​
Where the event starts, as a percentage through the track.
csharp
public Percent StartTime { get; }
