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...
GLTFNode¶
Inherits: Resource < RefCounted < Object
GLTF node class.
Description¶
Represents a GLTF node. GLTF nodes may have names, transforms, children (other GLTF nodes), and more specialized properties (represented by their own classes).
GLTF nodes generally exist inside of GLTFState which represents all data of a GLTF file. Most of GLTFNode's properties are indices of other data in the GLTF file. You can extend a GLTF node with additional properties by using get_additional_data and set_additional_data.
Tutorials¶
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
get_additional_data ( StringName extension_name ) |
|
void |
set_additional_data ( StringName extension_name, Variant additional_data ) |
Property Descriptions¶
int camera = -1
If this GLTF node is a camera, the index of the GLTFCamera in the GLTFState that describes the camera's properties. If -1, this node is not a camera.
PackedInt32Array children = PackedInt32Array()
void set_children ( PackedInt32Array value )
PackedInt32Array get_children ( )
The indices of the children nodes in the GLTFState. If this GLTF node has no children, this will be an empty array.
int height = -1
How deep into the node hierarchy this node is. A root node will have a height of 0, its children will have a height of 1, and so on. If -1, the height has not been calculated.
int light = -1
If this GLTF node is a light, the index of the GLTFLight in the GLTFState that describes the light's properties. If -1, this node is not a light.
int mesh = -1
If this GLTF node is a mesh, the index of the GLTFMesh in the GLTFState that describes the mesh's properties. If -1, this node is not a mesh.
int parent = -1
The index of the parent node in the GLTFState. If -1, this node is a root node.