GLTFNode¶
Inherits: Resource < Reference < 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).
Note: This class is only compiled in editor builds. Run-time glTF loading and saving is not available in exported projects. References to GLTFNode within a script will cause an error in an exported project.
Tutorials¶
Properties¶
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods¶
get_additional_data ( String extension_name ) |
|
void |
set_additional_data ( String extension_name, Variant additional_data ) |
Property Descriptions¶
int camera = -1
There is currently no description for this property. Please help us by contributing one!
PoolIntArray children = PoolIntArray( )
void set_children ( PoolIntArray value )
PoolIntArray 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!
bool joint = false
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!
Quat rotation = Quat( 0, 0, 0, 1 )
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!
Vector3 translation = Vector3( 0, 0, 0 )
There is currently no description for this property. Please help us by contributing one!
Transform xform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
There is currently no description for this property. Please help us by contributing one!
Method Descriptions¶
Variant get_additional_data ( String 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 ( String 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.