class_placeholdertexturelayered.rst 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. .. rst-class:: classref-reftable-group
  19. Properties
  20. ----------
  21. .. table::
  22. :widths: auto
  23. +---------------------------------+----------------------------------------------------------------+--------------------+
  24. | :ref:`int<class_int>` | :ref:`layers<class_PlaceholderTextureLayered_property_layers>` | ``1`` |
  25. +---------------------------------+----------------------------------------------------------------+--------------------+
  26. | :ref:`Vector2i<class_Vector2i>` | :ref:`size<class_PlaceholderTextureLayered_property_size>` | ``Vector2i(1, 1)`` |
  27. +---------------------------------+----------------------------------------------------------------+--------------------+
  28. .. rst-class:: classref-section-separator
  29. ----
  30. .. rst-class:: classref-descriptions-group
  31. Property Descriptions
  32. ---------------------
  33. .. _class_PlaceholderTextureLayered_property_layers:
  34. .. rst-class:: classref-property
  35. :ref:`int<class_int>` **layers** = ``1``
  36. .. rst-class:: classref-property-setget
  37. - void **set_layers** **(** :ref:`int<class_int>` value **)**
  38. - :ref:`int<class_int>` **get_layers** **(** **)**
  39. The number of layers in the texture array.
  40. .. rst-class:: classref-item-separator
  41. ----
  42. .. _class_PlaceholderTextureLayered_property_size:
  43. .. rst-class:: classref-property
  44. :ref:`Vector2i<class_Vector2i>` **size** = ``Vector2i(1, 1)``
  45. .. rst-class:: classref-property-setget
  46. - void **set_size** **(** :ref:`Vector2i<class_Vector2i>` value **)**
  47. - :ref:`Vector2i<class_Vector2i>` **get_size** **(** **)**
  48. The size of each texture layer (in pixels).
  49. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  50. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  51. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  52. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  53. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  54. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`