Up to date
This page is up to date for Godot 4.0
.
If you still find outdated information, please open an issue.
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).
Tutorials¶
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
get_additional_data ( StringName extension_name ) |
|
void |
set_additional_data ( StringName extension_name, Variant additional_data ) |
Property Descriptions¶
int camera = -1
There is currently no description for this property. Please help us by contributing one!
PackedInt32Array children = PackedInt32Array()
void set_children ( PackedInt32Array value )
PackedInt32Array get_children ( )
There is currently no description for this property. Please help us by contributing one!
int height = -1
There is currently no description for this property. Please help us by contributing one!
int light = -1
There is currently no description for this property. Please help us by contributing one!
int mesh = -1
There is currently no description for this property. Please help us by contributing one!
int parent = -1
There is currently no description for this property. Please help us by contributing one!
Vector3 position = Vector3(0, 0, 0)
There is currently no description for this property. Please help us by contributing one!
Quaternion rotation = Quaternion(0, 0, 0, 1)
void set_rotation ( Quaternion value )
Quaternion get_rotation ( )
There is currently no description for this property. Please help us by contributing one!
Vector3 scale = Vector3(1, 1, 1)
There is currently no description for this property. Please help us by contributing one!
int skeleton = -1
There is currently no description for this property. Please help us by contributing one!
int skin = -1
There is currently no description for this property. Please help us by contributing one!
Transform3D xform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
void set_xform ( Transform3D value )
Transform3D get_xform ( )
There is currently no description for this property. Please help us by contributing one!
Method Descriptions¶
Variant get_additional_data ( StringName extension_name )
Gets additional arbitrary data in this GLTFNode 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.
void set_additional_data ( StringName extension_name, Variant additional_data )
Sets additional arbitrary data in this GLTFNode 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.