Table of Contents

Class AnimationClip

Namespace
ValveResourceFormat.ResourceTypes.ModelAnimation2
Assembly
ValveResourceFormat.dll

Represents an animation clip with compressed pose data.

public class AnimationClip : BinaryKV3

Inheritance

Inherited Members

Extension Methods

Properties

CompressedPoseData

Gets the compressed pose data.

public byte[] CompressedPoseData { get; }

Property Value

byte[]

CompressedPoseOffsets

Gets the byte offsets for each compressed pose frame.

public long[] CompressedPoseOffsets { get; }

Property Value

long[]

Duration

Gets the duration of the animation in seconds.

public float Duration { get; }

Property Value

float

Name

Gets the name of the animation clip.

public string Name { get; }

Property Value

string

NumFrames

Gets the number of frames in the animation.

public int NumFrames { get; }

Property Value

int

SecondaryAnimations

Gets the secondary animations associated with this clip.

public AnimationClip[] SecondaryAnimations { get; }

Property Value

AnimationClip[]

SkeletonName

Gets the name of the skeleton this animation is for.

public string SkeletonName { get; }

Property Value

string

TrackCompressionSettings

Gets the compression settings for each animation track.

public TrackCompressionSetting[] TrackCompressionSettings { get; }

Property Value

TrackCompressionSetting[]

Methods

Read(BinaryReader)

Reads the block data from a binary reader.

public override void Read(BinaryReader reader)

Parameters

reader BinaryReader

The binary reader to read from.

ReadFrame(int, FrameBone[])

Reads and decompresses a specific frame of animation data into the provided bone array.

public void ReadFrame(int frameIndex, FrameBone[] bones)

Parameters

frameIndex int

The index of the frame to read.

bones FrameBone[]

The array of bones to populate with frame data.