class_gltfaccessor.rst 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the GLTFAccessor.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_GLTFAccessor:
  6. GLTFAccessor
  7. ============
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. Description
  10. -----------
  11. **Note:** This class is only compiled in editor builds. Run-time glTF loading and saving is *not* available in exported projects. References to ``GLTFAccessor`` within a script will cause an error in an exported project.
  12. Properties
  13. ----------
  14. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  15. | :ref:`int<class_int>` | :ref:`buffer_view<class_GLTFAccessor_property_buffer_view>` | ``0`` |
  16. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  17. | :ref:`int<class_int>` | :ref:`byte_offset<class_GLTFAccessor_property_byte_offset>` | ``0`` |
  18. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  19. | :ref:`int<class_int>` | :ref:`component_type<class_GLTFAccessor_property_component_type>` | ``0`` |
  20. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  21. | :ref:`int<class_int>` | :ref:`count<class_GLTFAccessor_property_count>` | ``0`` |
  22. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  23. | :ref:`PoolRealArray<class_PoolRealArray>` | :ref:`max<class_GLTFAccessor_property_max>` | ``PoolRealArray( )`` |
  24. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  25. | :ref:`PoolRealArray<class_PoolRealArray>` | :ref:`min<class_GLTFAccessor_property_min>` | ``PoolRealArray( )`` |
  26. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  27. | :ref:`bool<class_bool>` | :ref:`normalized<class_GLTFAccessor_property_normalized>` | ``false`` |
  28. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  29. | :ref:`int<class_int>` | :ref:`sparse_count<class_GLTFAccessor_property_sparse_count>` | ``0`` |
  30. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  31. | :ref:`int<class_int>` | :ref:`sparse_indices_buffer_view<class_GLTFAccessor_property_sparse_indices_buffer_view>` | ``0`` |
  32. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  33. | :ref:`int<class_int>` | :ref:`sparse_indices_byte_offset<class_GLTFAccessor_property_sparse_indices_byte_offset>` | ``0`` |
  34. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  35. | :ref:`int<class_int>` | :ref:`sparse_indices_component_type<class_GLTFAccessor_property_sparse_indices_component_type>` | ``0`` |
  36. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  37. | :ref:`int<class_int>` | :ref:`sparse_values_buffer_view<class_GLTFAccessor_property_sparse_values_buffer_view>` | ``0`` |
  38. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  39. | :ref:`int<class_int>` | :ref:`sparse_values_byte_offset<class_GLTFAccessor_property_sparse_values_byte_offset>` | ``0`` |
  40. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  41. | :ref:`int<class_int>` | :ref:`type<class_GLTFAccessor_property_type>` | ``0`` |
  42. +-------------------------------------------+-------------------------------------------------------------------------------------------------+-----------------------+
  43. Property Descriptions
  44. ---------------------
  45. .. _class_GLTFAccessor_property_buffer_view:
  46. - :ref:`int<class_int>` **buffer_view**
  47. +-----------+------------------------+
  48. | *Default* | ``0`` |
  49. +-----------+------------------------+
  50. | *Setter* | set_buffer_view(value) |
  51. +-----------+------------------------+
  52. | *Getter* | get_buffer_view() |
  53. +-----------+------------------------+
  54. ----
  55. .. _class_GLTFAccessor_property_byte_offset:
  56. - :ref:`int<class_int>` **byte_offset**
  57. +-----------+------------------------+
  58. | *Default* | ``0`` |
  59. +-----------+------------------------+
  60. | *Setter* | set_byte_offset(value) |
  61. +-----------+------------------------+
  62. | *Getter* | get_byte_offset() |
  63. +-----------+------------------------+
  64. ----
  65. .. _class_GLTFAccessor_property_component_type:
  66. - :ref:`int<class_int>` **component_type**
  67. +-----------+---------------------------+
  68. | *Default* | ``0`` |
  69. +-----------+---------------------------+
  70. | *Setter* | set_component_type(value) |
  71. +-----------+---------------------------+
  72. | *Getter* | get_component_type() |
  73. +-----------+---------------------------+
  74. ----
  75. .. _class_GLTFAccessor_property_count:
  76. - :ref:`int<class_int>` **count**
  77. +-----------+------------------+
  78. | *Default* | ``0`` |
  79. +-----------+------------------+
  80. | *Setter* | set_count(value) |
  81. +-----------+------------------+
  82. | *Getter* | get_count() |
  83. +-----------+------------------+
  84. ----
  85. .. _class_GLTFAccessor_property_max:
  86. - :ref:`PoolRealArray<class_PoolRealArray>` **max**
  87. +-----------+-----------------------+
  88. | *Default* | ``PoolRealArray( )`` |
  89. +-----------+-----------------------+
  90. | *Setter* | set_max(value) |
  91. +-----------+-----------------------+
  92. | *Getter* | get_max() |
  93. +-----------+-----------------------+
  94. ----
  95. .. _class_GLTFAccessor_property_min:
  96. - :ref:`PoolRealArray<class_PoolRealArray>` **min**
  97. +-----------+-----------------------+
  98. | *Default* | ``PoolRealArray( )`` |
  99. +-----------+-----------------------+
  100. | *Setter* | set_min(value) |
  101. +-----------+-----------------------+
  102. | *Getter* | get_min() |
  103. +-----------+-----------------------+
  104. ----
  105. .. _class_GLTFAccessor_property_normalized:
  106. - :ref:`bool<class_bool>` **normalized**
  107. +-----------+-----------------------+
  108. | *Default* | ``false`` |
  109. +-----------+-----------------------+
  110. | *Setter* | set_normalized(value) |
  111. +-----------+-----------------------+
  112. | *Getter* | get_normalized() |
  113. +-----------+-----------------------+
  114. ----
  115. .. _class_GLTFAccessor_property_sparse_count:
  116. - :ref:`int<class_int>` **sparse_count**
  117. +-----------+-------------------------+
  118. | *Default* | ``0`` |
  119. +-----------+-------------------------+
  120. | *Setter* | set_sparse_count(value) |
  121. +-----------+-------------------------+
  122. | *Getter* | get_sparse_count() |
  123. +-----------+-------------------------+
  124. ----
  125. .. _class_GLTFAccessor_property_sparse_indices_buffer_view:
  126. - :ref:`int<class_int>` **sparse_indices_buffer_view**
  127. +-----------+---------------------------------------+
  128. | *Default* | ``0`` |
  129. +-----------+---------------------------------------+
  130. | *Setter* | set_sparse_indices_buffer_view(value) |
  131. +-----------+---------------------------------------+
  132. | *Getter* | get_sparse_indices_buffer_view() |
  133. +-----------+---------------------------------------+
  134. ----
  135. .. _class_GLTFAccessor_property_sparse_indices_byte_offset:
  136. - :ref:`int<class_int>` **sparse_indices_byte_offset**
  137. +-----------+---------------------------------------+
  138. | *Default* | ``0`` |
  139. +-----------+---------------------------------------+
  140. | *Setter* | set_sparse_indices_byte_offset(value) |
  141. +-----------+---------------------------------------+
  142. | *Getter* | get_sparse_indices_byte_offset() |
  143. +-----------+---------------------------------------+
  144. ----
  145. .. _class_GLTFAccessor_property_sparse_indices_component_type:
  146. - :ref:`int<class_int>` **sparse_indices_component_type**
  147. +-----------+------------------------------------------+
  148. | *Default* | ``0`` |
  149. +-----------+------------------------------------------+
  150. | *Setter* | set_sparse_indices_component_type(value) |
  151. +-----------+------------------------------------------+
  152. | *Getter* | get_sparse_indices_component_type() |
  153. +-----------+------------------------------------------+
  154. ----
  155. .. _class_GLTFAccessor_property_sparse_values_buffer_view:
  156. - :ref:`int<class_int>` **sparse_values_buffer_view**
  157. +-----------+--------------------------------------+
  158. | *Default* | ``0`` |
  159. +-----------+--------------------------------------+
  160. | *Setter* | set_sparse_values_buffer_view(value) |
  161. +-----------+--------------------------------------+
  162. | *Getter* | get_sparse_values_buffer_view() |
  163. +-----------+--------------------------------------+
  164. ----
  165. .. _class_GLTFAccessor_property_sparse_values_byte_offset:
  166. - :ref:`int<class_int>` **sparse_values_byte_offset**
  167. +-----------+--------------------------------------+
  168. | *Default* | ``0`` |
  169. +-----------+--------------------------------------+
  170. | *Setter* | set_sparse_values_byte_offset(value) |
  171. +-----------+--------------------------------------+
  172. | *Getter* | get_sparse_values_byte_offset() |
  173. +-----------+--------------------------------------+
  174. ----
  175. .. _class_GLTFAccessor_property_type:
  176. - :ref:`int<class_int>` **type**
  177. +-----------+-----------------+
  178. | *Default* | ``0`` |
  179. +-----------+-----------------+
  180. | *Setter* | set_type(value) |
  181. +-----------+-----------------+
  182. | *Getter* | get_type() |
  183. +-----------+-----------------+
  184. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  185. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  186. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`