class_quadmesh.rst 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/QuadMesh.xml.
  6. .. _class_QuadMesh:
  7. QuadMesh
  8. ========
  9. **Inherits:** :ref:`PrimitiveMesh<class_PrimitiveMesh>` **<** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Class representing a square mesh.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Class representing a square :ref:`PrimitiveMesh<class_PrimitiveMesh>`. This flat mesh does not have a thickness. By default, this mesh is aligned on the X and Y axes; this default rotation is more suited for use with billboarded materials. Unlike :ref:`PlaneMesh<class_PlaneMesh>`, this mesh doesn't provide subdivision options.
  15. .. rst-class:: classref-introduction-group
  16. Tutorials
  17. ---------
  18. - `GUI in 3D Demo <https://godotengine.org/asset-library/asset/127>`__
  19. - `2D in 3D Demo <https://godotengine.org/asset-library/asset/129>`__
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +-------------------------------+-------------------------------------------------------------+------------------------+
  26. | :ref:`Vector3<class_Vector3>` | :ref:`center_offset<class_QuadMesh_property_center_offset>` | ``Vector3( 0, 0, 0 )`` |
  27. +-------------------------------+-------------------------------------------------------------+------------------------+
  28. | :ref:`Vector2<class_Vector2>` | :ref:`size<class_QuadMesh_property_size>` | ``Vector2( 1, 1 )`` |
  29. +-------------------------------+-------------------------------------------------------------+------------------------+
  30. .. rst-class:: classref-section-separator
  31. ----
  32. .. rst-class:: classref-descriptions-group
  33. Property Descriptions
  34. ---------------------
  35. .. _class_QuadMesh_property_center_offset:
  36. .. rst-class:: classref-property
  37. :ref:`Vector3<class_Vector3>` **center_offset** = ``Vector3( 0, 0, 0 )``
  38. .. rst-class:: classref-property-setget
  39. - void **set_center_offset** **(** :ref:`Vector3<class_Vector3>` value **)**
  40. - :ref:`Vector3<class_Vector3>` **get_center_offset** **(** **)**
  41. Offset of the generated Quad. Useful for particles.
  42. .. rst-class:: classref-item-separator
  43. ----
  44. .. _class_QuadMesh_property_size:
  45. .. rst-class:: classref-property
  46. :ref:`Vector2<class_Vector2>` **size** = ``Vector2( 1, 1 )``
  47. .. rst-class:: classref-property-setget
  48. - void **set_size** **(** :ref:`Vector2<class_Vector2>` value **)**
  49. - :ref:`Vector2<class_Vector2>` **get_size** **(** **)**
  50. Size on the X and Y axes.
  51. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  52. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  53. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  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.)`