class_quadmesh.rst 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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/QuadMesh.xml.
  6. .. _class_QuadMesh:
  7. QuadMesh
  8. ========
  9. **Inherits:** :ref:`PlaneMesh<class_PlaneMesh>` **<** :ref:`PrimitiveMesh<class_PrimitiveMesh>` **<** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Class representing a square mesh facing the camera.
  11. Description
  12. -----------
  13. 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 rotation is more suited for use with billboarded materials. A ``QuadMesh`` is equivalent to a :ref:`PlaneMesh<class_PlaneMesh>` except its default :ref:`PlaneMesh.orientation<class_PlaneMesh_property_orientation>` is :ref:`PlaneMesh.FACE_Z<class_PlaneMesh_constant_FACE_Z>`.
  14. Tutorials
  15. ---------
  16. - `GUI in 3D Demo <https://godotengine.org/asset-library/asset/127>`__
  17. - `2D in 3D Demo <https://godotengine.org/asset-library/asset/129>`__
  18. Properties
  19. ----------
  20. +------------------------------------------------+-------------+-------------------------------------------------------------------------------+
  21. | :ref:`Orientation<enum_PlaneMesh_Orientation>` | orientation | ``2`` (overrides :ref:`PlaneMesh<class_PlaneMesh_property_orientation>`) |
  22. +------------------------------------------------+-------------+-------------------------------------------------------------------------------+
  23. | :ref:`Vector2<class_Vector2>` | size | ``Vector2(1, 1)`` (overrides :ref:`PlaneMesh<class_PlaneMesh_property_size>`) |
  24. +------------------------------------------------+-------------+-------------------------------------------------------------------------------+
  25. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  26. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  27. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  28. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  29. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  30. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`