mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Sync classref with 2.1 source, goodbye 2.0!
This commit is contained in:
@@ -18,6 +18,8 @@ Camera node for 2D scenes.
|
||||
Member Functions
|
||||
----------------
|
||||
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`align<class_Camera2D_align>` **(** **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`clear_current<class_Camera2D_clear_current>` **(** **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
@@ -55,6 +57,8 @@ Member Functions
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`make_current<class_Camera2D_make_current>` **(** **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`reset_smoothing<class_Camera2D_reset_smoothing>` **(** **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_anchor_mode<class_Camera2D_set_anchor_mode>` **(** :ref:`int<class_int>` anchor_mode **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_drag_margin<class_Camera2D_set_drag_margin>` **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` drag_margin **)** |
|
||||
@@ -96,6 +100,12 @@ This node is intended to be a simple helper get get things going quickly and it
|
||||
Member Function Description
|
||||
---------------------------
|
||||
|
||||
.. _class_Camera2D_align:
|
||||
|
||||
- void **align** **(** **)**
|
||||
|
||||
Align the camera to the tracked node
|
||||
|
||||
.. _class_Camera2D_clear_current:
|
||||
|
||||
- void **clear_current** **(** **)**
|
||||
@@ -182,6 +192,14 @@ Return true of this is the current camera (see :ref:`make_current<class_Camera2D
|
||||
|
||||
Make this the current 2D camera for the scene (viewport and layer), in case there's many cameras in the scene.
|
||||
|
||||
.. _class_Camera2D_reset_smoothing:
|
||||
|
||||
- void **reset_smoothing** **(** **)**
|
||||
|
||||
Set the camera's position immediately to its current smoothing destination.
|
||||
|
||||
This has no effect if smoothing is disabled.
|
||||
|
||||
.. _class_Camera2D_set_anchor_mode:
|
||||
|
||||
- void **set_anchor_mode** **(** :ref:`int<class_int>` anchor_mode **)**
|
||||
|
||||
Reference in New Issue
Block a user