Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
GLTFAnimation
继承: Resource < RefCounted < Object
There is currently no description for this class. Please help us by contributing one!
教程
属性
|
||
|
方法
get_additional_data(extension_name: StringName) |
|
void |
set_additional_data(extension_name: StringName, additional_data: Variant) |
属性说明
There is currently no description for this property. Please help us by contributing one!
动画的原名。
方法说明
Variant get_additional_data(extension_name: StringName) 🔗
在这个 GLTFAnimation 实例中获取额外的任意数据。这可用于将每个节点的状态数据保存在 GLTFDocumentExtension 类中,这很重要,因为它们是无状态的。
参数应该是 GLTFDocumentExtension 的名字(不必与 glTF 文件中的扩展名匹配),且返回值可以是你设置的任何值。如果没有设置任何内容,则返回值为 null。
void set_additional_data(extension_name: StringName, additional_data: Variant) 🔗
在这个 GLTFAnimation 实例中设置额外的任意数据。这可用于将每个节点的状态数据保存在 GLTFDocumentExtension 类中,这很重要,因为它们是无状态的。
第一个参数应该是 GLTFDocumentExtension 的名字(不必与 glTF 文件中的扩展名匹配),第二个参数可以是你想要的任何内容。