123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/master/modules/gltf/doc_classes/GLTFAccessor.xml.
- .. _class_GLTFAccessor:
- GLTFAccessor
- ============
- **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
- Represents a glTF accessor.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- GLTFAccessor is a data structure representing a glTF ``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 :ref:`GLTFBufferView<class_GLTFBufferView>`). Accessors are for more advanced use cases such as interleaved mesh data encoded for the GPU.
- .. rst-class:: classref-introduction-group
- Tutorials
- ---------
- - `Buffers, BufferViews, and Accessors in Khronos glTF specification <https://github.com/KhronosGroup/glTF-Tutorials/blob/master/gltfTutorial/gltfTutorial_005_BuffersBufferViewsAccessors.md>`__
- - :doc:`Runtime file loading and saving <../tutorials/io/runtime_file_loading_and_saving>`
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` | :ref:`accessor_type<class_GLTFAccessor_property_accessor_type>` | ``0`` |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`int<class_int>` | :ref:`buffer_view<class_GLTFAccessor_property_buffer_view>` | ``-1`` |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`int<class_int>` | :ref:`byte_offset<class_GLTFAccessor_property_byte_offset>` | ``0`` |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`int<class_int>` | :ref:`component_type<class_GLTFAccessor_property_component_type>` | ``0`` |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`int<class_int>` | :ref:`count<class_GLTFAccessor_property_count>` | ``0`` |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`PackedFloat64Array<class_PackedFloat64Array>` | :ref:`max<class_GLTFAccessor_property_max>` | ``PackedFloat64Array()`` |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`PackedFloat64Array<class_PackedFloat64Array>` | :ref:`min<class_GLTFAccessor_property_min>` | ``PackedFloat64Array()`` |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`bool<class_bool>` | :ref:`normalized<class_GLTFAccessor_property_normalized>` | ``false`` |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`int<class_int>` | :ref:`sparse_count<class_GLTFAccessor_property_sparse_count>` | ``0`` |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`int<class_int>` | :ref:`sparse_indices_buffer_view<class_GLTFAccessor_property_sparse_indices_buffer_view>` | ``0`` |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`int<class_int>` | :ref:`sparse_indices_byte_offset<class_GLTFAccessor_property_sparse_indices_byte_offset>` | ``0`` |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`int<class_int>` | :ref:`sparse_indices_component_type<class_GLTFAccessor_property_sparse_indices_component_type>` | ``0`` |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`int<class_int>` | :ref:`sparse_values_buffer_view<class_GLTFAccessor_property_sparse_values_buffer_view>` | ``0`` |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`int<class_int>` | :ref:`sparse_values_byte_offset<class_GLTFAccessor_property_sparse_values_byte_offset>` | ``0`` |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- | :ref:`int<class_int>` | :ref:`type<class_GLTFAccessor_property_type>` | |
- +-------------------------------------------------------------+-------------------------------------------------------------------------------------------------+--------------------------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Enumerations
- ------------
- .. _enum_GLTFAccessor_GLTFAccessorType:
- .. rst-class:: classref-enumeration
- enum **GLTFAccessorType**: :ref:`🔗<enum_GLTFAccessor_GLTFAccessorType>`
- .. _class_GLTFAccessor_constant_TYPE_SCALAR:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_SCALAR** = ``0``
- Accessor type "SCALAR". For the glTF object model, this can be used to map to a single float, int, or bool value, or a float array.
- .. _class_GLTFAccessor_constant_TYPE_VEC2:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_VEC2** = ``1``
- Accessor type "VEC2". For the glTF object model, this maps to "float2", represented in the glTF JSON as an array of two floats.
- .. _class_GLTFAccessor_constant_TYPE_VEC3:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_VEC3** = ``2``
- Accessor type "VEC3". For the glTF object model, this maps to "float3", represented in the glTF JSON as an array of three floats.
- .. _class_GLTFAccessor_constant_TYPE_VEC4:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_VEC4** = ``3``
- Accessor type "VEC4". For the glTF object model, this maps to "float4", represented in the glTF JSON as an array of four floats.
- .. _class_GLTFAccessor_constant_TYPE_MAT2:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_MAT2** = ``4``
- Accessor type "MAT2". For the glTF object model, this maps to "float2x2", represented in the glTF JSON as an array of four floats.
- .. _class_GLTFAccessor_constant_TYPE_MAT3:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_MAT3** = ``5``
- Accessor type "MAT3". For the glTF object model, this maps to "float3x3", represented in the glTF JSON as an array of nine floats.
- .. _class_GLTFAccessor_constant_TYPE_MAT4:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **TYPE_MAT4** = ``6``
- Accessor type "MAT4". For the glTF object model, this maps to "float4x4", represented in the glTF JSON as an array of sixteen floats.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_GLTFAccessor_GLTFComponentType:
- .. rst-class:: classref-enumeration
- enum **GLTFComponentType**: :ref:`🔗<enum_GLTFAccessor_GLTFComponentType>`
- .. _class_GLTFAccessor_constant_COMPONENT_TYPE_NONE:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_NONE** = ``0``
- Component type "NONE". This is not a valid component type, and is used to indicate that the component type is not set.
- .. _class_GLTFAccessor_constant_COMPONENT_TYPE_SIGNED_BYTE:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_SIGNED_BYTE** = ``5120``
- Component type "BYTE". The value is ``0x1400`` which comes from OpenGL. This indicates data is stored in 1-byte or 8-bit signed integers. This is a core part of the glTF specification.
- .. _class_GLTFAccessor_constant_COMPONENT_TYPE_UNSIGNED_BYTE:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_UNSIGNED_BYTE** = ``5121``
- Component type "UNSIGNED_BYTE". The value is ``0x1401`` which comes from OpenGL. This indicates data is stored in 1-byte or 8-bit unsigned integers. This is a core part of the glTF specification.
- .. _class_GLTFAccessor_constant_COMPONENT_TYPE_SIGNED_SHORT:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_SIGNED_SHORT** = ``5122``
- Component type "SHORT". The value is ``0x1402`` which comes from OpenGL. This indicates data is stored in 2-byte or 16-bit signed integers. This is a core part of the glTF specification.
- .. _class_GLTFAccessor_constant_COMPONENT_TYPE_UNSIGNED_SHORT:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_UNSIGNED_SHORT** = ``5123``
- Component type "UNSIGNED_SHORT". The value is ``0x1403`` which comes from OpenGL. This indicates data is stored in 2-byte or 16-bit unsigned integers. This is a core part of the glTF specification.
- .. _class_GLTFAccessor_constant_COMPONENT_TYPE_SIGNED_INT:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_SIGNED_INT** = ``5124``
- Component type "INT". The value is ``0x1404`` which comes from OpenGL. This indicates data is stored in 4-byte or 32-bit signed integers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including ``KHR_interactivity``.
- .. _class_GLTFAccessor_constant_COMPONENT_TYPE_UNSIGNED_INT:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_UNSIGNED_INT** = ``5125``
- Component type "UNSIGNED_INT". The value is ``0x1405`` which comes from OpenGL. This indicates data is stored in 4-byte or 32-bit unsigned integers. This is a core part of the glTF specification.
- .. _class_GLTFAccessor_constant_COMPONENT_TYPE_SINGLE_FLOAT:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_SINGLE_FLOAT** = ``5126``
- Component type "FLOAT". The value is ``0x1406`` which comes from OpenGL. This indicates data is stored in 4-byte or 32-bit floating-point numbers. This is a core part of the glTF specification.
- .. _class_GLTFAccessor_constant_COMPONENT_TYPE_DOUBLE_FLOAT:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_DOUBLE_FLOAT** = ``5130``
- Component type "DOUBLE". The value is ``0x140A`` which comes from OpenGL. This indicates data is stored in 8-byte or 64-bit floating-point numbers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including ``KHR_interactivity``.
- .. _class_GLTFAccessor_constant_COMPONENT_TYPE_HALF_FLOAT:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_HALF_FLOAT** = ``5131``
- Component type "HALF_FLOAT". The value is ``0x140B`` which comes from OpenGL. This indicates data is stored in 2-byte or 16-bit floating-point numbers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including ``KHR_interactivity``.
- .. _class_GLTFAccessor_constant_COMPONENT_TYPE_SIGNED_LONG:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_SIGNED_LONG** = ``5134``
- Component type "LONG". The value is ``0x140E`` which comes from OpenGL. This indicates data is stored in 8-byte or 64-bit signed integers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including ``KHR_interactivity``.
- .. _class_GLTFAccessor_constant_COMPONENT_TYPE_UNSIGNED_LONG:
- .. rst-class:: classref-enumeration-constant
- :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` **COMPONENT_TYPE_UNSIGNED_LONG** = ``5135``
- Component type "UNSIGNED_LONG". The value is ``0x140F`` which comes from OpenGL. This indicates data is stored in 8-byte or 64-bit unsigned integers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including ``KHR_interactivity``.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_GLTFAccessor_property_accessor_type:
- .. rst-class:: classref-property
- :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **accessor_type** = ``0`` :ref:`🔗<class_GLTFAccessor_property_accessor_type>`
- .. rst-class:: classref-property-setget
- - |void| **set_accessor_type**\ (\ value\: :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>`\ )
- - :ref:`GLTFAccessorType<enum_GLTFAccessor_GLTFAccessorType>` **get_accessor_type**\ (\ )
- The glTF accessor type as an enum. Possible values are 0 for "SCALAR", 1 for "VEC2", 2 for "VEC3", 3 for "VEC4", 4 for "MAT2", 5 for "MAT3", and 6 for "MAT4".
- .. rst-class:: classref-item-separator
- ----
- .. _class_GLTFAccessor_property_buffer_view:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **buffer_view** = ``-1`` :ref:`🔗<class_GLTFAccessor_property_buffer_view>`
- .. rst-class:: classref-property-setget
- - |void| **set_buffer_view**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_buffer_view**\ (\ )
- The index of the buffer view this accessor is referencing. If ``-1``, this accessor is not referencing any buffer view.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GLTFAccessor_property_byte_offset:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **byte_offset** = ``0`` :ref:`🔗<class_GLTFAccessor_property_byte_offset>`
- .. rst-class:: classref-property-setget
- - |void| **set_byte_offset**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_byte_offset**\ (\ )
- The offset relative to the start of the buffer view in bytes.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GLTFAccessor_property_component_type:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **component_type** = ``0`` :ref:`🔗<class_GLTFAccessor_property_component_type>`
- .. rst-class:: classref-property-setget
- - |void| **set_component_type**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_component_type**\ (\ )
- The glTF component type as an enum. See :ref:`GLTFComponentType<enum_GLTFAccessor_GLTFComponentType>` for possible values. Within the core glTF specification, a value of 5125 or "UNSIGNED_INT" must not be used for any accessor that is not referenced by mesh.primitive.indices.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GLTFAccessor_property_count:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **count** = ``0`` :ref:`🔗<class_GLTFAccessor_property_count>`
- .. rst-class:: classref-property-setget
- - |void| **set_count**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_count**\ (\ )
- The number of elements referenced by this accessor.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GLTFAccessor_property_max:
- .. rst-class:: classref-property
- :ref:`PackedFloat64Array<class_PackedFloat64Array>` **max** = ``PackedFloat64Array()`` :ref:`🔗<class_GLTFAccessor_property_max>`
- .. rst-class:: classref-property-setget
- - |void| **set_max**\ (\ value\: :ref:`PackedFloat64Array<class_PackedFloat64Array>`\ )
- - :ref:`PackedFloat64Array<class_PackedFloat64Array>` **get_max**\ (\ )
- Maximum value of each component in this accessor.
- **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedFloat64Array<class_PackedFloat64Array>` for more details.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GLTFAccessor_property_min:
- .. rst-class:: classref-property
- :ref:`PackedFloat64Array<class_PackedFloat64Array>` **min** = ``PackedFloat64Array()`` :ref:`🔗<class_GLTFAccessor_property_min>`
- .. rst-class:: classref-property-setget
- - |void| **set_min**\ (\ value\: :ref:`PackedFloat64Array<class_PackedFloat64Array>`\ )
- - :ref:`PackedFloat64Array<class_PackedFloat64Array>` **get_min**\ (\ )
- Minimum value of each component in this accessor.
- **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedFloat64Array<class_PackedFloat64Array>` for more details.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GLTFAccessor_property_normalized:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **normalized** = ``false`` :ref:`🔗<class_GLTFAccessor_property_normalized>`
- .. rst-class:: classref-property-setget
- - |void| **set_normalized**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **get_normalized**\ (\ )
- Specifies whether integer data values are normalized before usage.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GLTFAccessor_property_sparse_count:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **sparse_count** = ``0`` :ref:`🔗<class_GLTFAccessor_property_sparse_count>`
- .. rst-class:: classref-property-setget
- - |void| **set_sparse_count**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_sparse_count**\ (\ )
- Number of deviating accessor values stored in the sparse array.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GLTFAccessor_property_sparse_indices_buffer_view:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **sparse_indices_buffer_view** = ``0`` :ref:`🔗<class_GLTFAccessor_property_sparse_indices_buffer_view>`
- .. rst-class:: classref-property-setget
- - |void| **set_sparse_indices_buffer_view**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_sparse_indices_buffer_view**\ (\ )
- The index of the buffer view with sparse indices. The referenced buffer view MUST NOT have its target or byteStride properties defined. The buffer view and the optional byteOffset MUST be aligned to the componentType byte length.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GLTFAccessor_property_sparse_indices_byte_offset:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **sparse_indices_byte_offset** = ``0`` :ref:`🔗<class_GLTFAccessor_property_sparse_indices_byte_offset>`
- .. rst-class:: classref-property-setget
- - |void| **set_sparse_indices_byte_offset**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_sparse_indices_byte_offset**\ (\ )
- The offset relative to the start of the buffer view in bytes.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GLTFAccessor_property_sparse_indices_component_type:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **sparse_indices_component_type** = ``0`` :ref:`🔗<class_GLTFAccessor_property_sparse_indices_component_type>`
- .. rst-class:: classref-property-setget
- - |void| **set_sparse_indices_component_type**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_sparse_indices_component_type**\ (\ )
- The indices component data type as an enum. Possible values are 5121 for "UNSIGNED_BYTE", 5123 for "UNSIGNED_SHORT", and 5125 for "UNSIGNED_INT".
- .. rst-class:: classref-item-separator
- ----
- .. _class_GLTFAccessor_property_sparse_values_buffer_view:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **sparse_values_buffer_view** = ``0`` :ref:`🔗<class_GLTFAccessor_property_sparse_values_buffer_view>`
- .. rst-class:: classref-property-setget
- - |void| **set_sparse_values_buffer_view**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_sparse_values_buffer_view**\ (\ )
- The index of the bufferView with sparse values. The referenced buffer view MUST NOT have its target or byteStride properties defined.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GLTFAccessor_property_sparse_values_byte_offset:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **sparse_values_byte_offset** = ``0`` :ref:`🔗<class_GLTFAccessor_property_sparse_values_byte_offset>`
- .. rst-class:: classref-property-setget
- - |void| **set_sparse_values_byte_offset**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_sparse_values_byte_offset**\ (\ )
- The offset relative to the start of the bufferView in bytes.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GLTFAccessor_property_type:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **type** :ref:`🔗<class_GLTFAccessor_property_type>`
- .. rst-class:: classref-property-setget
- - |void| **set_type**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_type**\ (\ )
- **Deprecated:** Use :ref:`accessor_type<class_GLTFAccessor_property_accessor_type>` instead.
- The glTF accessor type as an enum. Use :ref:`accessor_type<class_GLTFAccessor_property_accessor_type>` instead.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
- .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
- .. |void| replace:: :abbr:`void (No return value.)`
|