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.

GLTFAccessor

Inherits: Resource < RefCounted < Object

Represents a GLTF accessor.

Description

GLTFAccessor is a data structure representing GLTF a accessor that would be found in the "accessors" array. A buffer is a blob of binary data. A buffer view is a slice of a buffer. An accessor is a typed interpretation of the data in a buffer view.

Most custom data stored in GLTF does not need accessors, only buffer views (see GLTFBufferView). Accessors are for more advanced use cases such as interleaved mesh data encoded for the GPU.

Tutorials

Properties

int

buffer_view

-1

int

byte_offset

0

int

component_type

0

int

count

0

PackedFloat64Array

max

PackedFloat64Array()

PackedFloat64Array

min

PackedFloat64Array()

bool

normalized

false

int

sparse_count

0

int

sparse_indices_buffer_view

0

int

sparse_indices_byte_offset

0

int

sparse_indices_component_type

0

int

sparse_values_buffer_view

0

int

sparse_values_byte_offset

0

int

type

0


Property Descriptions

int buffer_view = -1

  • void set_buffer_view(value: int)

  • int get_buffer_view()

The index of the buffer view this accessor is referencing. If -1, this accessor is not referencing any buffer view.


int byte_offset = 0

  • void set_byte_offset(value: int)

  • int get_byte_offset()

There is currently no description for this property. Please help us by contributing one!


int component_type = 0

  • void set_component_type(value: int)

  • int get_component_type()

There is currently no description for this property. Please help us by contributing one!


int count = 0

  • void set_count(value: int)

  • int get_count()

There is currently no description for this property. Please help us by contributing one!


PackedFloat64Array max = PackedFloat64Array()

There is currently no description for this property. Please help us by contributing one!


PackedFloat64Array min = PackedFloat64Array()

There is currently no description for this property. Please help us by contributing one!


bool normalized = false

  • void set_normalized(value: bool)

  • bool get_normalized()

There is currently no description for this property. Please help us by contributing one!


int sparse_count = 0

  • void set_sparse_count(value: int)

  • int get_sparse_count()

There is currently no description for this property. Please help us by contributing one!


int sparse_indices_buffer_view = 0

  • void set_sparse_indices_buffer_view(value: int)

  • int get_sparse_indices_buffer_view()

There is currently no description for this property. Please help us by contributing one!


int sparse_indices_byte_offset = 0

  • void set_sparse_indices_byte_offset(value: int)

  • int get_sparse_indices_byte_offset()

There is currently no description for this property. Please help us by contributing one!


int sparse_indices_component_type = 0

  • void set_sparse_indices_component_type(value: int)

  • int get_sparse_indices_component_type()

There is currently no description for this property. Please help us by contributing one!


int sparse_values_buffer_view = 0

  • void set_sparse_values_buffer_view(value: int)

  • int get_sparse_values_buffer_view()

There is currently no description for this property. Please help us by contributing one!


int sparse_values_byte_offset = 0

  • void set_sparse_values_byte_offset(value: int)

  • int get_sparse_values_byte_offset()

There is currently no description for this property. Please help us by contributing one!


int type = 0

  • void set_type(value: int)

  • int get_type()

There is currently no description for this property. Please help us by contributing one!


User-contributed notes

Please read the User-contributed notes policy before submitting a comment.