GltfAnimation
A Reckfell C# SDK type.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
GltfAnimationConstructor
public GltfAnimation();Properties2
LoopProperty
public bool Loop { get; set; }OriginalNameProperty
public string OriginalName { get; set; }The original name of the animation.
Methods6
GetAdditionalDataVariant
public Variant GetAdditionalData(StringName extensionName);Gets additional arbitrary data in this GltfAnimation instance. This can be used to keep per-node state data in GltfDocumentExtension classes, which is important because they are stateless.
The argument should be the GltfDocumentExtension name (does not have to match the extension name in the glTF file), and the return value can be anything you set. If nothing was set, the return value is null.
| Name | Type | Default |
|---|---|---|
extensionName | StringName | — |
VariantGetLoopbool
public bool GetLoop();boolGetOriginalNamestring
public string GetOriginalName();stringSetAdditionalDatavoid
public void SetAdditionalData(StringName extensionName, Variant additionalData);Sets additional arbitrary data in this GltfAnimation instance. This can be used to keep per-node state data in GltfDocumentExtension classes, which is important because they are stateless.
The first argument should be the GltfDocumentExtension name (does not have to match the extension name in the glTF file), and the second argument can be anything you want.
| Name | Type | Default |
|---|---|---|
extensionName | StringName | — |
additionalData | Variant | — |
SetLoopvoid
public void SetLoop(bool loop);| Name | Type | Default |
|---|---|---|
loop | bool | — |
SetOriginalNamevoid
public void SetOriginalName(string originalName);| Name | Type | Default |
|---|---|---|
originalName | string | — |