GLTFState

Inherits: Resource < RefCounted < Object

Properties

String

base_path

""

PackedByteArray[]

buffers

[]

bool

create_animations

true

PackedByteArray

glb_data

PackedByteArray()

Dictionary

json

{}

int

major_version

0

int

minor_version

0

PackedInt32Array

root_nodes

PackedInt32Array()

String

scene_name

""

bool

use_named_skin_binds

false

Methods

GLTFAccessor[]

get_accessors ( )

AnimationPlayer

get_animation_player ( int idx )

int

get_animation_players_count ( int idx )

GLTFAnimation[]

get_animations ( )

GLTFBufferView[]

get_buffer_views ( )

GLTFCamera[]

get_cameras ( )

Texture2D[]

get_images ( )

GLTFLight[]

get_lights ( )

BaseMaterial3D[]

get_materials ( )

GLTFMesh[]

get_meshes ( )

GLTFNode[]

get_nodes ( )

Node

get_scene_node ( int idx )

Dictionary

get_skeleton_to_node ( )

GLTFSkeleton[]

get_skeletons ( )

GLTFSkin[]

get_skins ( )

GLTFTexture[]

get_textures ( )

String[]

get_unique_animation_names ( )

String[]

get_unique_names ( )

void

set_accessors ( GLTFAccessor[] accessors )

void

set_animations ( GLTFAnimation[] animations )

void

set_buffer_views ( GLTFBufferView[] buffer_views )

void

set_cameras ( GLTFCamera[] cameras )

void

set_images ( Texture2D[] images )

void

set_lights ( GLTFLight[] lights )

void

set_materials ( BaseMaterial3D[] materials )

void

set_meshes ( GLTFMesh[] meshes )

void

set_nodes ( GLTFNode[] nodes )

void

set_skeleton_to_node ( Dictionary skeleton_to_node )

void

set_skeletons ( GLTFSkeleton[] skeletons )

void

set_skins ( GLTFSkin[] skins )

void

set_textures ( GLTFTexture[] textures )

void

set_unique_animation_names ( String[] unique_animation_names )

void

set_unique_names ( String[] unique_names )

Property Descriptions

Default

""

Setter

set_base_path(value)

Getter

get_base_path()


Default

[]

Setter

set_buffers(value)

Getter

get_buffers()


  • bool create_animations

Default

true

Setter

set_create_animations(value)

Getter

get_create_animations()


Default

PackedByteArray()

Setter

set_glb_data(value)

Getter

get_glb_data()


Default

{}

Setter

set_json(value)

Getter

get_json()


  • int major_version

Default

0

Setter

set_major_version(value)

Getter

get_major_version()


  • int minor_version

Default

0

Setter

set_minor_version(value)

Getter

get_minor_version()


Default

PackedInt32Array()

Setter

set_root_nodes(value)

Getter

get_root_nodes()


Default

""

Setter

set_scene_name(value)

Getter

get_scene_name()


  • bool use_named_skin_binds

Default

false

Setter

set_use_named_skin_binds(value)

Getter

get_use_named_skin_binds()

Method Descriptions



  • int get_animation_players_count ( int idx )















  • String[] get_unique_animation_names ( )












  • void set_skeleton_to_node ( Dictionary skeleton_to_node )





  • void set_unique_animation_names ( String[] unique_animation_names )


  • void set_unique_names ( String[] unique_names )