class_spritebase3d.rst 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the SpriteBase3D.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_SpriteBase3D:
  5. SpriteBase3D
  6. ============
  7. **Inherits:** :ref:`GeometryInstance<class_geometryinstance>` **<** :ref:`VisualInstance<class_visualinstance>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Inherited By:** :ref:`AnimatedSprite3D<class_animatedsprite3d>`, :ref:`Sprite3D<class_sprite3d>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. 2D Sprite node in 3D environment.
  13. Member Functions
  14. ----------------
  15. +----------------------------+--------------------------------------------------------------------------+
  16. | :ref:`Rect2<class_rect2>` | :ref:`get_item_rect<class_SpriteBase3D_get_item_rect>` **(** **)** const |
  17. +----------------------------+--------------------------------------------------------------------------+
  18. Member Variables
  19. ----------------
  20. .. _class_SpriteBase3D_alpha_cut:
  21. - :ref:`AlphaCutMode<enum_spritebase3d_alphacutmode>` **alpha_cut**
  22. .. _class_SpriteBase3D_axis:
  23. - :ref:`Axis<enum_vector3_axis>` **axis** - The direction in which the front of the texture faces.
  24. .. _class_SpriteBase3D_centered:
  25. - :ref:`bool<class_bool>` **centered** - If ``true`` texture will be centered. Default value: ``true``.
  26. .. _class_SpriteBase3D_double_sided:
  27. - :ref:`bool<class_bool>` **double_sided** - If ``true`` texture can be seen from the back as well, if ``false``, it is invisible when looking at it from behind. Default value: ``true``.
  28. .. _class_SpriteBase3D_flip_h:
  29. - :ref:`bool<class_bool>` **flip_h** - If ``true`` texture is flipped horizontally. Default value: ``false``.
  30. .. _class_SpriteBase3D_flip_v:
  31. - :ref:`bool<class_bool>` **flip_v** - If ``true`` texture is flipped vertically. Default value: ``false``.
  32. .. _class_SpriteBase3D_modulate:
  33. - :ref:`Color<class_color>` **modulate** - A color value that gets multiplied on, could be used for mood-coloring or to simulate the color of light.
  34. .. _class_SpriteBase3D_offset:
  35. - :ref:`Vector2<class_vector2>` **offset** - The texture's drawing offset.
  36. .. _class_SpriteBase3D_opacity:
  37. - :ref:`float<class_float>` **opacity** - The objects visibility on a scale from ``0`` fully invisible to ``1`` fully visible.
  38. .. _class_SpriteBase3D_pixel_size:
  39. - :ref:`float<class_float>` **pixel_size** - The size of one pixel's width on the Sprite to scale it in 3D.
  40. .. _class_SpriteBase3D_shaded:
  41. - :ref:`bool<class_bool>` **shaded** - If ``true`` the :ref:`Light<class_light>` in the :ref:`Environment<class_environment>` has effects on the Sprite. Default value: ``false``.
  42. .. _class_SpriteBase3D_transparent:
  43. - :ref:`bool<class_bool>` **transparent** - If ``true`` the texture's transparency and the opacity are used to make those parts of the Sprite invisible. Default value: ``true``.
  44. Enums
  45. -----
  46. .. _enum_SpriteBase3D_AlphaCutMode:
  47. enum **AlphaCutMode**
  48. - **ALPHA_CUT_DISABLED** = **0**
  49. - **ALPHA_CUT_DISCARD** = **1**
  50. - **ALPHA_CUT_OPAQUE_PREPASS** = **2**
  51. .. _enum_SpriteBase3D_DrawFlags:
  52. enum **DrawFlags**
  53. - **FLAG_TRANSPARENT** = **0** --- If set, the texture's transparency and the opacity are used to make those parts of the Sprite invisible.
  54. - **FLAG_SHADED** = **1** --- If set, the Light in the Environment has effects on the Sprite.
  55. - **FLAG_DOUBLE_SIDED** = **2** --- If set, texture can be seen from the back as well, if not, it is invisible when looking at it from behind.
  56. - **FLAG_MAX** = **3** --- Used internally to mark the end of the Flags section.
  57. Description
  58. -----------
  59. A node that displays 2D texture information in a 3D environment.
  60. Member Function Description
  61. ---------------------------
  62. .. _class_SpriteBase3D_get_item_rect:
  63. - :ref:`Rect2<class_rect2>` **get_item_rect** **(** **)** const