mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-08 10:10:54 +03:00
To tell potential contributors that they should NOT edit those files but instead should work on the class.xml source of the main Godot repo
48 lines
1.6 KiB
ReStructuredText
48 lines
1.6 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
|
|
|
|
.. _class_Path2D:
|
|
|
|
Path2D
|
|
======
|
|
|
|
**Inherits:** :ref:`Node2D<class_node2d>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Container for a :ref:`Curve2D<class_curve2d>`.
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+--------------------------------+--------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_curve<class_Path2D_set_curve>` **(** :ref:`Curve2D<class_curve2d>` curve **)** |
|
|
+--------------------------------+--------------------------------------------------------------------------------------------+
|
|
| :ref:`Curve2D<class_curve2d>` | :ref:`get_curve<class_Path2D_get_curve>` **(** **)** const |
|
|
+--------------------------------+--------------------------------------------------------------------------------------------+
|
|
|
|
Description
|
|
-----------
|
|
|
|
This class is a container/Node-ification of a :ref:`Curve2D<class_curve2d>`, so it can have :ref:`Node2D<class_node2d>` properties and :ref:`Node<class_node>` info.
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _class_Path2D_set_curve:
|
|
|
|
- void **set_curve** **(** :ref:`Curve2D<class_curve2d>` curve **)**
|
|
|
|
Sets the :ref:`Curve2D<class_curve2d>`.
|
|
|
|
.. _class_Path2D_get_curve:
|
|
|
|
- :ref:`Curve2D<class_curve2d>` **get_curve** **(** **)** const
|
|
|
|
Returns the :ref:`Curve2D<class_curve2d>` contained.
|
|
|
|
|