class_placeholdertexturelayered.rst 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/PlaceholderTextureLayered.xml.
  6. .. _class_PlaceholderTextureLayered:
  7. PlaceholderTextureLayered
  8. =========================
  9. **Inherits:** :ref:`TextureLayered<class_TextureLayered>` **<** :ref:`Texture<class_Texture>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`PlaceholderCubemap<class_PlaceholderCubemap>`, :ref:`PlaceholderCubemapArray<class_PlaceholderCubemapArray>`, :ref:`PlaceholderTexture2DArray<class_PlaceholderTexture2DArray>`
  11. Placeholder class for a 2-dimensional texture array.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. This class is used when loading a project that uses a :ref:`TextureLayered<class_TextureLayered>` subclass in 2 conditions:
  16. - When running the project exported in dedicated server mode, only the texture's dimensions are kept (as they may be relied upon for gameplay purposes or positioning of other elements). This allows reducing the exported PCK's size significantly.
  17. - When this subclass is missing due to using a different engine version or build (e.g. modules disabled).
  18. \ **Note:** This is not intended to be used as an actual texture for rendering. It is not guaranteed to work like one in shaders or materials (for example when calculating UV).
  19. .. rst-class:: classref-reftable-group
  20. Properties
  21. ----------
  22. .. table::
  23. :widths: auto
  24. +---------------------------------+----------------------------------------------------------------+--------------------+
  25. | :ref:`int<class_int>` | :ref:`layers<class_PlaceholderTextureLayered_property_layers>` | ``1`` |
  26. +---------------------------------+----------------------------------------------------------------+--------------------+
  27. | :ref:`Vector2i<class_Vector2i>` | :ref:`size<class_PlaceholderTextureLayered_property_size>` | ``Vector2i(1, 1)`` |
  28. +---------------------------------+----------------------------------------------------------------+--------------------+
  29. .. rst-class:: classref-section-separator
  30. ----
  31. .. rst-class:: classref-descriptions-group
  32. Property Descriptions
  33. ---------------------
  34. .. _class_PlaceholderTextureLayered_property_layers:
  35. .. rst-class:: classref-property
  36. :ref:`int<class_int>` **layers** = ``1``
  37. .. rst-class:: classref-property-setget
  38. - void **set_layers** **(** :ref:`int<class_int>` value **)**
  39. - :ref:`int<class_int>` **get_layers** **(** **)**
  40. The number of layers in the texture array.
  41. .. rst-class:: classref-item-separator
  42. ----
  43. .. _class_PlaceholderTextureLayered_property_size:
  44. .. rst-class:: classref-property
  45. :ref:`Vector2i<class_Vector2i>` **size** = ``Vector2i(1, 1)``
  46. .. rst-class:: classref-property-setget
  47. - void **set_size** **(** :ref:`Vector2i<class_Vector2i>` value **)**
  48. - :ref:`Vector2i<class_Vector2i>` **get_size** **(** **)**
  49. The size of each texture layer (in pixels).
  50. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  51. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  52. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  53. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  54. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  55. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  56. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`