mirror of
https://github.com/godotengine/godot-docs-l10n.git
synced 2025-12-31 09:49:22 +03:00
51 lines
2.7 KiB
ReStructuredText
51 lines
2.7 KiB
ReStructuredText
:github_url: hide
|
|
|
|
.. _class_QuadMesh:
|
|
|
|
QuadMesh
|
|
========
|
|
|
|
**继承:** :ref:`PlaneMesh<class_PlaneMesh>` **<** :ref:`PrimitiveMesh<class_PrimitiveMesh>` **<** :ref:`Mesh<class_Mesh>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
|
|
|
|
表示面向相机的正方形网格的类。
|
|
|
|
.. rst-class:: classref-introduction-group
|
|
|
|
描述
|
|
----
|
|
|
|
代表正方形 :ref:`PrimitiveMesh<class_PrimitiveMesh>` 的类。这个平面网格没有厚度。默认情况下,这个网格与 X 轴和 Y 轴对齐;这种旋转方式更适合于使用公告板的材质。\ **QuadMesh** 和 :ref:`PlaneMesh<class_PlaneMesh>` 是等价的,区别是 :ref:`PlaneMesh.orientation<class_PlaneMesh_property_orientation>` 默认为 :ref:`PlaneMesh.FACE_Z<class_PlaneMesh_constant_FACE_Z>`\ 。
|
|
|
|
.. rst-class:: classref-introduction-group
|
|
|
|
教程
|
|
----
|
|
|
|
- `3D 视口中的 GUI 演示 <https://godotengine.org/asset-library/asset/2807>`__
|
|
|
|
- `3D 视口中的 2D 演示 <https://godotengine.org/asset-library/asset/2803>`__
|
|
|
|
.. rst-class:: classref-reftable-group
|
|
|
|
属性
|
|
----
|
|
|
|
.. table::
|
|
:widths: auto
|
|
|
|
+------------------------------------------------+-------------+-------------------------------------------------------------------------------+
|
|
| :ref:`Orientation<enum_PlaneMesh_Orientation>` | orientation | ``2`` (overrides :ref:`PlaneMesh<class_PlaneMesh_property_orientation>`) |
|
|
+------------------------------------------------+-------------+-------------------------------------------------------------------------------+
|
|
| :ref:`Vector2<class_Vector2>` | size | ``Vector2(1, 1)`` (overrides :ref:`PlaneMesh<class_PlaneMesh_property_size>`) |
|
|
+------------------------------------------------+-------------+-------------------------------------------------------------------------------+
|
|
|
|
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
|
|
.. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
|
|
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
|
|
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
|
|
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
|
|
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
|
|
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
|
|
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
|
|
.. |void| replace:: :abbr:`void (无返回值。)`
|