mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
classref: Add property overview and setter/getter like in editor docs
Output from godotengine/godot#22013. Fixes #1729.
This commit is contained in:
@@ -8,6 +8,7 @@ RectangleShape2D
|
||||
================
|
||||
|
||||
**Inherits:** :ref:`Shape2D<class_Shape2D>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
|
||||
|
||||
**Category:** Core
|
||||
|
||||
Brief Description
|
||||
@@ -15,6 +16,13 @@ Brief Description
|
||||
|
||||
Rectangle shape for 2D collisions.
|
||||
|
||||
Properties
|
||||
----------
|
||||
|
||||
+-------------------------------+------------------------------------------------+
|
||||
| :ref:`Vector2<class_Vector2>` | :ref:`extents<class_RectangleShape2D_extents>` |
|
||||
+-------------------------------+------------------------------------------------+
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -25,6 +33,13 @@ Property Descriptions
|
||||
|
||||
.. _class_RectangleShape2D_extents:
|
||||
|
||||
- :ref:`Vector2<class_Vector2>` **extents** - The rectangle's half extents. The width and height of this shape is twice the half extents.
|
||||
- :ref:`Vector2<class_Vector2>` **extents**
|
||||
|
||||
+----------+--------------------+
|
||||
| *Setter* | set_extents(value) |
|
||||
+----------+--------------------+
|
||||
| *Getter* | get_extents() |
|
||||
+----------+--------------------+
|
||||
|
||||
The rectangle's half extents. The width and height of this shape is twice the half extents.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user