GLTFSkeleton
Inherits: Resource < RefCounted < Object
Properties
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| PackedInt32Array | joints |
PackedInt32Array() |
| PackedInt32Array | roots |
PackedInt32Array() |
Methods
Section titled “Methods”| Returns | Method |
|---|---|
| BoneAttachment3D | get_bone_attachment(idx: int) |
| int | get_bone_attachment_count() |
| Dictionary | get_orblit_bone_node() |
| Skeleton3D | get_orblit_skeleton() |
| Array[String] | get_unique_names() |
| void | set_orblit_bone_node(orblit_bone_node: Dictionary) |
| void | set_unique_names(unique_names: Array[String]) |
Property descriptions
Section titled “Property descriptions”joints
PackedInt32Array joints = PackedInt32Array()
roots
PackedInt32Array roots = PackedInt32Array()
Method descriptions
Section titled “Method descriptions”get_bone_attachment
BoneAttachment3D get_bone_attachment(idx: int)
get_bone_attachment_count
int get_bone_attachment_count()
get_orblit_bone_node
Dictionary get_orblit_bone_node()
Returns a Dictionary that maps skeleton bone indices to the indices of glTF nodes. This property is unused during import, and only set during export. In a glTF file, a bone is a node, so Orblit converts skeleton bones to glTF nodes.
get_orblit_skeleton
Skeleton3D get_orblit_skeleton()
get_unique_names
Array[String] get_unique_names()
set_orblit_bone_node
void set_orblit_bone_node(orblit_bone_node: Dictionary)
Sets a Dictionary that maps skeleton bone indices to the indices of glTF nodes. This property is unused during import, and only set during export. In a glTF file, a bone is a node, so Orblit converts skeleton bones to glTF nodes.
