Sprite3D.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="Sprite3D" inherits="SpriteBase3D" category="Core" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. 2D Sprite node in 3D world.
  5. </brief_description>
  6. <description>
  7. A node that displays a 2D texture in a 3D environment. The texture displayed can be a region from a larger atlas texture, or a frame from a sprite sheet animation.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="get_frame" qualifiers="const">
  15. <return type="int">
  16. </return>
  17. <description>
  18. </description>
  19. </method>
  20. <method name="get_hframes" qualifiers="const">
  21. <return type="int">
  22. </return>
  23. <description>
  24. </description>
  25. </method>
  26. <method name="get_region_rect" qualifiers="const">
  27. <return type="Rect2">
  28. </return>
  29. <description>
  30. </description>
  31. </method>
  32. <method name="get_texture" qualifiers="const">
  33. <return type="Texture">
  34. </return>
  35. <description>
  36. </description>
  37. </method>
  38. <method name="get_vframes" qualifiers="const">
  39. <return type="int">
  40. </return>
  41. <description>
  42. </description>
  43. </method>
  44. <method name="is_region" qualifiers="const">
  45. <return type="bool">
  46. </return>
  47. <description>
  48. </description>
  49. </method>
  50. <method name="set_frame">
  51. <return type="void">
  52. </return>
  53. <argument index="0" name="frame" type="int">
  54. </argument>
  55. <description>
  56. </description>
  57. </method>
  58. <method name="set_hframes">
  59. <return type="void">
  60. </return>
  61. <argument index="0" name="hframes" type="int">
  62. </argument>
  63. <description>
  64. </description>
  65. </method>
  66. <method name="set_region">
  67. <return type="void">
  68. </return>
  69. <argument index="0" name="enabled" type="bool">
  70. </argument>
  71. <description>
  72. </description>
  73. </method>
  74. <method name="set_region_rect">
  75. <return type="void">
  76. </return>
  77. <argument index="0" name="rect" type="Rect2">
  78. </argument>
  79. <description>
  80. </description>
  81. </method>
  82. <method name="set_texture">
  83. <return type="void">
  84. </return>
  85. <argument index="0" name="texture" type="Texture">
  86. </argument>
  87. <description>
  88. </description>
  89. </method>
  90. <method name="set_vframes">
  91. <return type="void">
  92. </return>
  93. <argument index="0" name="vframes" type="int">
  94. </argument>
  95. <description>
  96. </description>
  97. </method>
  98. </methods>
  99. <members>
  100. <member name="frame" type="int" setter="set_frame" getter="get_frame">
  101. Current frame to display from sprite sheet. [member vframes] or [member hframes] must be greater than 1.
  102. </member>
  103. <member name="hframes" type="int" setter="set_hframes" getter="get_hframes">
  104. The number of columns in the sprite sheet.
  105. </member>
  106. <member name="region_enabled" type="bool" setter="set_region" getter="is_region">
  107. If [code]true[/code] texture will be cut from a larger atlas texture. See [member region_rect]. Default value: [code]false[/code].
  108. </member>
  109. <member name="region_rect" type="Rect2" setter="set_region_rect" getter="get_region_rect">
  110. The region of the atlas texture to display. [member region_enabled] must be [code]true[/code].
  111. </member>
  112. <member name="texture" type="Texture" setter="set_texture" getter="get_texture">
  113. [Texture] object to draw.
  114. </member>
  115. <member name="vframes" type="int" setter="set_vframes" getter="get_vframes">
  116. The number of rows in the sprite sheet.
  117. </member>
  118. </members>
  119. <signals>
  120. <signal name="frame_changed">
  121. <description>
  122. Emitted when the [member frame] changes.
  123. </description>
  124. </signal>
  125. </signals>
  126. <constants>
  127. </constants>
  128. </class>