.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the SpriteBase3D.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_SpriteBase3D: SpriteBase3D ============ **Inherits:** :ref:`GeometryInstance` **<** :ref:`VisualInstance` **<** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` **Inherited By:** :ref:`AnimatedSprite3D`, :ref:`Sprite3D` **Category:** Core Brief Description ----------------- 2D Sprite node in 3D environment. Member Functions ---------------- +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_alpha_cut_mode` **(** **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_axis` **(** **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_draw_flag` **(** :ref:`int` flag **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2` | :ref:`get_item_rect` **(** **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_modulate` **(** **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`get_offset` **(** **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_opacity` **(** **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_pixel_size` **(** **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_centered` **(** **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_flipped_h` **(** **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`is_flipped_v` **(** **)** const | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_alpha_cut_mode` **(** :ref:`int` mode **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_axis` **(** :ref:`int` axis **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_centered` **(** :ref:`bool` centered **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_draw_flag` **(** :ref:`int` flag, :ref:`bool` enabled **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_flip_h` **(** :ref:`bool` flip_h **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_flip_v` **(** :ref:`bool` flip_v **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_modulate` **(** :ref:`Color` modulate **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_offset` **(** :ref:`Vector2` offset **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_opacity` **(** :ref:`float` opacity **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_pixel_size` **(** :ref:`float` pixel_size **)** | +--------------------------------+----------------------------------------------------------------------------------------------------------------------------------+ Member Variables ---------------- - :ref:`int` **alpha_cut** - :ref:`int` **axis** - The direction in which the front of the texture faces. - :ref:`bool` **centered** - If [code]true[/code] texture will be centered. Default value: [code]true[/code]. - :ref:`bool` **double_sided** - If [code]true[/code] texture can be seen from the back as well, if [code]false[/code], it is invisible when looking at it from behind. Default value: [code]true[/code]. - :ref:`bool` **flip_h** - If [code]true[/code] texture is flipped horizontally. Default value: [code]false[/code]. - :ref:`bool` **flip_v** - If [code]true[/code] texture is flipped vertically. Default value: [code]false[/code]. - :ref:`Color` **modulate** - A color value that gets multiplied on, could be used for mood-coloring or to simulate the color of light. - :ref:`Vector2` **offset** - The texture's drawing offset. - :ref:`float` **opacity** - The objects visibility on a scale from [code]0[/code] fully invisible to [code]1[/code] fully visible. - :ref:`float` **pixel_size** - The size of one pixel's width on the Sprite to scale it in 3D. - :ref:`bool` **shaded** - If [code]true[/code] the [Light] in the [Environment] has effects on the Sprite. Default value: [code]false[/code]. - :ref:`bool` **transparent** - If [code]true[/code] the texture's transparency and the opacity are used to make those parts of the Sprite invisible. Default value: [code]true[/code]. Numeric Constants ----------------- - **FLAG_TRANSPARENT** = **0** --- If set, the texture's transparency and the opacity are used to make those parts of the Sprite invisible. - **FLAG_SHADED** = **1** --- If set, the Light in the Environment has effects on the Sprite. - **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. - **FLAG_MAX** = **3** --- Used internally to mark the end of the Flags section. - **ALPHA_CUT_DISABLED** = **0** - **ALPHA_CUT_DISCARD** = **1** - **ALPHA_CUT_OPAQUE_PREPASS** = **2** Description ----------- A node that displays 2D texture information in a 3D environment. Member Function Description --------------------------- .. _class_SpriteBase3D_get_alpha_cut_mode: - :ref:`int` **get_alpha_cut_mode** **(** **)** const .. _class_SpriteBase3D_get_axis: - :ref:`int` **get_axis** **(** **)** const .. _class_SpriteBase3D_get_draw_flag: - :ref:`bool` **get_draw_flag** **(** :ref:`int` flag **)** const .. _class_SpriteBase3D_get_item_rect: - :ref:`Rect2` **get_item_rect** **(** **)** const .. _class_SpriteBase3D_get_modulate: - :ref:`Color` **get_modulate** **(** **)** const .. _class_SpriteBase3D_get_offset: - :ref:`Vector2` **get_offset** **(** **)** const .. _class_SpriteBase3D_get_opacity: - :ref:`float` **get_opacity** **(** **)** const .. _class_SpriteBase3D_get_pixel_size: - :ref:`float` **get_pixel_size** **(** **)** const .. _class_SpriteBase3D_is_centered: - :ref:`bool` **is_centered** **(** **)** const .. _class_SpriteBase3D_is_flipped_h: - :ref:`bool` **is_flipped_h** **(** **)** const .. _class_SpriteBase3D_is_flipped_v: - :ref:`bool` **is_flipped_v** **(** **)** const .. _class_SpriteBase3D_set_alpha_cut_mode: - void **set_alpha_cut_mode** **(** :ref:`int` mode **)** .. _class_SpriteBase3D_set_axis: - void **set_axis** **(** :ref:`int` axis **)** .. _class_SpriteBase3D_set_centered: - void **set_centered** **(** :ref:`bool` centered **)** .. _class_SpriteBase3D_set_draw_flag: - void **set_draw_flag** **(** :ref:`int` flag, :ref:`bool` enabled **)** .. _class_SpriteBase3D_set_flip_h: - void **set_flip_h** **(** :ref:`bool` flip_h **)** .. _class_SpriteBase3D_set_flip_v: - void **set_flip_v** **(** :ref:`bool` flip_v **)** .. _class_SpriteBase3D_set_modulate: - void **set_modulate** **(** :ref:`Color` modulate **)** .. _class_SpriteBase3D_set_offset: - void **set_offset** **(** :ref:`Vector2` offset **)** .. _class_SpriteBase3D_set_opacity: - void **set_opacity** **(** :ref:`float` opacity **)** .. _class_SpriteBase3D_set_pixel_size: - void **set_pixel_size** **(** :ref:`float` pixel_size **)**