Class AnimationClip
- 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
Name
Gets the name of the animation clip.
public string Name { get; }
Property Value
NumFrames
Gets the number of frames in the animation.
public int NumFrames { get; }
Property Value
SecondaryAnimations
Gets the secondary animations associated with this clip.
public AnimationClip[] SecondaryAnimations { get; }
Property Value
SkeletonName
Gets the name of the skeleton this animation is for.
public string SkeletonName { get; }
Property Value
TrackCompressionSettings
Gets the compression settings for each animation track.
public TrackCompressionSetting[] TrackCompressionSettings { get; }
Property Value
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)