Class GltfModelExporter.AnimationWriter
Namespace: ValveResourceFormat.IO
Assembly: ValveResourceFormat.dll
Manages the writing of skeletal animation data to glTF format.
csharp
public class GltfModelExporter.AnimationWriterInheritance
object ← GltfModelExporter.AnimationWriter
Constructors
AnimationWriter(Skeleton, FlexController[])
Initializes a new instance of the class.
csharp
public AnimationWriter(Skeleton skeleton, FlexController[] flexControllers)Parameters
skeleton Skeleton
flexControllers FlexController[]
Methods
WriteAnimation(ModelRoot, Node?[], Animation, string?)
Writes a skeletal animation to the glTF model. Entries in joints may be null when an animation targets a skeleton with bones the exported model does not have (e.g. animation graph clips retargeted by bone name); those bones are skipped.
csharp
public void WriteAnimation(ModelRoot model, Node?[] joints, Animation animation, string? animationName = null)Parameters
model ModelRoot
joints Node?[]
animation Animation
animationName string?

