mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
classref: Sync with current 2.1 source
This commit is contained in:
@@ -19,6 +19,8 @@ Member Functions
|
||||
+------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Color<class_color>` | :ref:`Color8<class_@GDScript_Color8>` **(** :ref:`int<class_int>` r8, :ref:`int<class_int>` g8, :ref:`int<class_int>` b8, :ref:`int<class_int>` a8 **)** |
|
||||
+------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Color<class_color>` | :ref:`ColorN<class_@GDScript_ColorN>` **(** :ref:`String<class_string>` name, :ref:`float<class_float>` alpha **)** |
|
||||
+------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`abs<class_@GDScript_abs>` **(** :ref:`float<class_float>` s **)** |
|
||||
+------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`acos<class_@GDScript_acos>` **(** :ref:`float<class_float>` s **)** |
|
||||
@@ -173,6 +175,10 @@ Member Function Description
|
||||
|
||||
Make a color from red, green, blue and alpha. Arguments can range from 0 to 255.
|
||||
|
||||
.. _class_@GDScript_ColorN:
|
||||
|
||||
- :ref:`Color<class_color>` **ColorN** **(** :ref:`String<class_string>` name, :ref:`float<class_float>` alpha **)**
|
||||
|
||||
.. _class_@GDScript_abs:
|
||||
|
||||
- :ref:`float<class_float>` **abs** **(** :ref:`float<class_float>` s **)**
|
||||
|
||||
@@ -61,6 +61,7 @@ Member Functions
|
||||
Signals
|
||||
-------
|
||||
|
||||
- **finished** **(** **)**
|
||||
- **frame_changed** **(** **)**
|
||||
|
||||
Description
|
||||
|
||||
@@ -33,6 +33,8 @@ Member Functions
|
||||
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`append<class_Array_append>` **(** var value **)** |
|
||||
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`back<class_Array_back>` **(** **)** |
|
||||
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`clear<class_Array_clear>` **(** **)** |
|
||||
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`count<class_Array_count>` **(** var value **)** |
|
||||
@@ -45,6 +47,8 @@ Member Functions
|
||||
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`find_last<class_Array_find_last>` **(** var value **)** |
|
||||
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`front<class_Array_front>` **(** **)** |
|
||||
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`has<class_Array_has>` **(** var value **)** |
|
||||
+----------------------------+-----------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`hash<class_Array_hash>` **(** **)** |
|
||||
@@ -132,6 +136,12 @@ Construct an array from a :ref:`RawArray<class_rawarray>`.
|
||||
|
||||
Append an element at the end of the array (alias of :ref:`push_back<class_Array_push_back>`).
|
||||
|
||||
.. _class_Array_back:
|
||||
|
||||
- void **back** **(** **)**
|
||||
|
||||
Returns the last element of the array if the array is not empty (size>0).
|
||||
|
||||
.. _class_Array_clear:
|
||||
|
||||
- void **clear** **(** **)**
|
||||
@@ -168,6 +178,12 @@ Searches the array for a value and returns its index or -1 if not found. Optiona
|
||||
|
||||
Searches the array in reverse order for a value and returns its index or -1 if not found.
|
||||
|
||||
.. _class_Array_front:
|
||||
|
||||
- void **front** **(** **)**
|
||||
|
||||
Returns the first element of the array if the array is not empty (size>0).
|
||||
|
||||
.. _class_Array_has:
|
||||
|
||||
- :ref:`bool<class_bool>` **has** **(** var value **)**
|
||||
|
||||
@@ -15,8 +15,29 @@ Brief Description
|
||||
|
||||
A node that will attach to a bone.
|
||||
|
||||
Member Functions
|
||||
----------------
|
||||
|
||||
+------------------------------+--------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`String<class_string>` | :ref:`get_bone_name<class_BoneAttachment_get_bone_name>` **(** **)** const |
|
||||
+------------------------------+--------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_bone_name<class_BoneAttachment_set_bone_name>` **(** :ref:`String<class_string>` bone_name **)** |
|
||||
+------------------------------+--------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
This node must be the child of a :ref:`Skeleton<class_skeleton>` node. You can then select a bone for this node to attach to. The BoneAttachment node will copy the transform of the selected bone.
|
||||
|
||||
Member Function Description
|
||||
---------------------------
|
||||
|
||||
.. _class_BoneAttachment_get_bone_name:
|
||||
|
||||
- :ref:`String<class_string>` **get_bone_name** **(** **)** const
|
||||
|
||||
.. _class_BoneAttachment_set_bone_name:
|
||||
|
||||
- void **set_bone_name** **(** :ref:`String<class_string>` bone_name **)**
|
||||
|
||||
|
||||
|
||||
@@ -41,12 +41,16 @@ Member Functions
|
||||
+--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_selected<class_ButtonArray_get_selected>` **(** **)** const |
|
||||
+--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_flat<class_ButtonArray_is_flat>` **(** **)** const |
|
||||
+--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_button_icon<class_ButtonArray_set_button_icon>` **(** :ref:`int<class_int>` button_idx, :ref:`Texture<class_texture>` icon **)** |
|
||||
+--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_button_text<class_ButtonArray_set_button_text>` **(** :ref:`int<class_int>` button_idx, :ref:`String<class_string>` text **)** |
|
||||
+--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_button_tooltip<class_ButtonArray_set_button_tooltip>` **(** :ref:`int<class_int>` button_idx, :ref:`String<class_string>` text **)** |
|
||||
+--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_flat<class_ButtonArray_set_flat>` **(** :ref:`bool<class_bool>` enabled **)** |
|
||||
+--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_selected<class_ButtonArray_set_selected>` **(** :ref:`int<class_int>` button_idx **)** |
|
||||
+--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
@@ -132,6 +136,10 @@ Return the index of the currently hovered button in the array.
|
||||
|
||||
Return the index of the currently selected button in the array.
|
||||
|
||||
.. _class_ButtonArray_is_flat:
|
||||
|
||||
- :ref:`bool<class_bool>` **is_flat** **(** **)** const
|
||||
|
||||
.. _class_ButtonArray_set_button_icon:
|
||||
|
||||
- void **set_button_icon** **(** :ref:`int<class_int>` button_idx, :ref:`Texture<class_texture>` icon **)**
|
||||
@@ -148,6 +156,10 @@ Define the text of the specified button.
|
||||
|
||||
- void **set_button_tooltip** **(** :ref:`int<class_int>` button_idx, :ref:`String<class_string>` text **)**
|
||||
|
||||
.. _class_ButtonArray_set_flat:
|
||||
|
||||
- void **set_flat** **(** :ref:`bool<class_bool>` enabled **)**
|
||||
|
||||
.. _class_ButtonArray_set_selected:
|
||||
|
||||
- void **set_selected** **(** :ref:`int<class_int>` button_idx **)**
|
||||
|
||||
+79
-65
@@ -18,71 +18,75 @@ Camera node for 2D scenes.
|
||||
Member Functions
|
||||
----------------
|
||||
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`align<class_Camera2D_align>` **(** **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`clear_current<class_Camera2D_clear_current>` **(** **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`force_update_scroll<class_Camera2D_force_update_scroll>` **(** **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_anchor_mode<class_Camera2D_get_anchor_mode>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_camera_pos<class_Camera2D_get_camera_pos>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_camera_screen_center<class_Camera2D_get_camera_screen_center>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_drag_margin<class_Camera2D_get_drag_margin>` **(** :ref:`int<class_int>` margin **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_follow_smoothing<class_Camera2D_get_follow_smoothing>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_h_offset<class_Camera2D_get_h_offset>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_limit<class_Camera2D_get_limit>` **(** :ref:`int<class_int>` margin **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_offset<class_Camera2D_get_offset>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_v_offset<class_Camera2D_get_v_offset>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_zoom<class_Camera2D_get_zoom>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_current<class_Camera2D_is_current>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_follow_smoothing_enabled<class_Camera2D_is_follow_smoothing_enabled>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_h_drag_enabled<class_Camera2D_is_h_drag_enabled>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_rotating<class_Camera2D_is_rotating>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_v_drag_enabled<class_Camera2D_is_v_drag_enabled>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| 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 **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_enable_follow_smoothing<class_Camera2D_set_enable_follow_smoothing>` **(** :ref:`bool<class_bool>` follow_smoothing **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_follow_smoothing<class_Camera2D_set_follow_smoothing>` **(** :ref:`float<class_float>` follow_smoothing **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_h_drag_enabled<class_Camera2D_set_h_drag_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_h_offset<class_Camera2D_set_h_offset>` **(** :ref:`float<class_float>` ofs **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_limit<class_Camera2D_set_limit>` **(** :ref:`int<class_int>` margin, :ref:`int<class_int>` limit **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_offset<class_Camera2D_set_offset>` **(** :ref:`Vector2<class_vector2>` offset **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_rotating<class_Camera2D_set_rotating>` **(** :ref:`bool<class_bool>` rotating **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_v_drag_enabled<class_Camera2D_set_v_drag_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_v_offset<class_Camera2D_set_v_offset>` **(** :ref:`float<class_float>` ofs **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_zoom<class_Camera2D_set_zoom>` **(** :ref:`Vector2<class_vector2>` zoom **)** |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`align<class_Camera2D_align>` **(** **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`clear_current<class_Camera2D_clear_current>` **(** **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`force_update_scroll<class_Camera2D_force_update_scroll>` **(** **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_anchor_mode<class_Camera2D_get_anchor_mode>` **(** **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_camera_pos<class_Camera2D_get_camera_pos>` **(** **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_camera_screen_center<class_Camera2D_get_camera_screen_center>` **(** **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Viewport<class_viewport>` | :ref:`get_custom_viewport<class_Camera2D_get_custom_viewport>` **(** **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_drag_margin<class_Camera2D_get_drag_margin>` **(** :ref:`int<class_int>` margin **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_follow_smoothing<class_Camera2D_get_follow_smoothing>` **(** **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_h_offset<class_Camera2D_get_h_offset>` **(** **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_limit<class_Camera2D_get_limit>` **(** :ref:`int<class_int>` margin **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_offset<class_Camera2D_get_offset>` **(** **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_v_offset<class_Camera2D_get_v_offset>` **(** **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_zoom<class_Camera2D_get_zoom>` **(** **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_current<class_Camera2D_is_current>` **(** **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_follow_smoothing_enabled<class_Camera2D_is_follow_smoothing_enabled>` **(** **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_h_drag_enabled<class_Camera2D_is_h_drag_enabled>` **(** **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_rotating<class_Camera2D_is_rotating>` **(** **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_v_drag_enabled<class_Camera2D_is_v_drag_enabled>` **(** **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| 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_custom_viewport<class_Camera2D_set_custom_viewport>` **(** :ref:`Viewport<class_viewport>` viewport **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_drag_margin<class_Camera2D_set_drag_margin>` **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` drag_margin **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_enable_follow_smoothing<class_Camera2D_set_enable_follow_smoothing>` **(** :ref:`bool<class_bool>` follow_smoothing **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_follow_smoothing<class_Camera2D_set_follow_smoothing>` **(** :ref:`float<class_float>` follow_smoothing **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_h_drag_enabled<class_Camera2D_set_h_drag_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_h_offset<class_Camera2D_set_h_offset>` **(** :ref:`float<class_float>` ofs **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_limit<class_Camera2D_set_limit>` **(** :ref:`int<class_int>` margin, :ref:`int<class_int>` limit **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_offset<class_Camera2D_set_offset>` **(** :ref:`Vector2<class_vector2>` offset **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_rotating<class_Camera2D_set_rotating>` **(** :ref:`bool<class_bool>` rotating **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_v_drag_enabled<class_Camera2D_set_v_drag_enabled>` **(** :ref:`bool<class_bool>` enabled **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_v_offset<class_Camera2D_set_v_offset>` **(** :ref:`float<class_float>` ofs **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_zoom<class_Camera2D_set_zoom>` **(** :ref:`Vector2<class_vector2>` zoom **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
Numeric Constants
|
||||
-----------------
|
||||
@@ -130,6 +134,12 @@ Return the camera position.
|
||||
|
||||
- :ref:`Vector2<class_vector2>` **get_camera_screen_center** **(** **)** const
|
||||
|
||||
.. _class_Camera2D_get_custom_viewport:
|
||||
|
||||
- :ref:`Viewport<class_viewport>` **get_custom_viewport** **(** **)** const
|
||||
|
||||
Return the viewport RID for this layer.
|
||||
|
||||
.. _class_Camera2D_get_drag_margin:
|
||||
|
||||
- :ref:`float<class_float>` **get_drag_margin** **(** :ref:`int<class_int>` margin **)** const
|
||||
@@ -204,6 +214,10 @@ This has no effect if smoothing is disabled.
|
||||
|
||||
- void **set_anchor_mode** **(** :ref:`int<class_int>` anchor_mode **)**
|
||||
|
||||
.. _class_Camera2D_set_custom_viewport:
|
||||
|
||||
- void **set_custom_viewport** **(** :ref:`Viewport<class_viewport>` viewport **)**
|
||||
|
||||
.. _class_Camera2D_set_drag_margin:
|
||||
|
||||
- void **set_drag_margin** **(** :ref:`int<class_int>` margin, :ref:`float<class_float>` drag_margin **)**
|
||||
|
||||
@@ -20,35 +20,37 @@ Canvas Item layer.
|
||||
Member Functions
|
||||
----------------
|
||||
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_layer<class_CanvasLayer_get_layer>` **(** **)** const |
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_offset<class_CanvasLayer_get_offset>` **(** **)** const |
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_rotation<class_CanvasLayer_get_rotation>` **(** **)** const |
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_rotationd<class_CanvasLayer_get_rotationd>` **(** **)** const |
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_scale<class_CanvasLayer_get_scale>` **(** **)** const |
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Matrix32<class_matrix32>` | :ref:`get_transform<class_CanvasLayer_get_transform>` **(** **)** const |
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`RID<class_rid>` | :ref:`get_viewport<class_CanvasLayer_get_viewport>` **(** **)** const |
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`World2D<class_world2d>` | :ref:`get_world_2d<class_CanvasLayer_get_world_2d>` **(** **)** const |
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_layer<class_CanvasLayer_set_layer>` **(** :ref:`int<class_int>` layer **)** |
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_offset<class_CanvasLayer_set_offset>` **(** :ref:`Vector2<class_vector2>` offset **)** |
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_rotation<class_CanvasLayer_set_rotation>` **(** :ref:`float<class_float>` radians **)** |
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_rotationd<class_CanvasLayer_set_rotationd>` **(** :ref:`float<class_float>` degrees **)** |
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_scale<class_CanvasLayer_set_scale>` **(** :ref:`Vector2<class_vector2>` scale **)** |
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_transform<class_CanvasLayer_set_transform>` **(** :ref:`Matrix32<class_matrix32>` transform **)** |
|
||||
+----------------------------------+---------------------------------------------------------------------------------------------------------------+
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Viewport<class_viewport>` | :ref:`get_custom_viewport<class_CanvasLayer_get_custom_viewport>` **(** **)** const |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_layer<class_CanvasLayer_get_layer>` **(** **)** const |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_offset<class_CanvasLayer_get_offset>` **(** **)** const |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_rotation<class_CanvasLayer_get_rotation>` **(** **)** const |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_rotationd<class_CanvasLayer_get_rotationd>` **(** **)** const |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_scale<class_CanvasLayer_get_scale>` **(** **)** const |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Matrix32<class_matrix32>` | :ref:`get_transform<class_CanvasLayer_get_transform>` **(** **)** const |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`World2D<class_world2d>` | :ref:`get_world_2d<class_CanvasLayer_get_world_2d>` **(** **)** const |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_custom_viewport<class_CanvasLayer_set_custom_viewport>` **(** :ref:`Viewport<class_viewport>` viewport **)** |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_layer<class_CanvasLayer_set_layer>` **(** :ref:`int<class_int>` layer **)** |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_offset<class_CanvasLayer_set_offset>` **(** :ref:`Vector2<class_vector2>` offset **)** |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_rotation<class_CanvasLayer_set_rotation>` **(** :ref:`float<class_float>` radians **)** |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_rotationd<class_CanvasLayer_set_rotationd>` **(** :ref:`float<class_float>` degrees **)** |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_scale<class_CanvasLayer_set_scale>` **(** :ref:`Vector2<class_vector2>` scale **)** |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_transform<class_CanvasLayer_set_transform>` **(** :ref:`Matrix32<class_matrix32>` transform **)** |
|
||||
+----------------------------------+--------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
Description
|
||||
-----------
|
||||
@@ -58,6 +60,12 @@ Canvas Item layer. :ref:`CanvasItem<class_canvasitem>` nodes that are direct or
|
||||
Member Function Description
|
||||
---------------------------
|
||||
|
||||
.. _class_CanvasLayer_get_custom_viewport:
|
||||
|
||||
- :ref:`Viewport<class_viewport>` **get_custom_viewport** **(** **)** const
|
||||
|
||||
Return the viewport RID for this layer.
|
||||
|
||||
.. _class_CanvasLayer_get_layer:
|
||||
|
||||
- :ref:`int<class_int>` **get_layer** **(** **)** const
|
||||
@@ -94,18 +102,16 @@ Return the base scale for this layer (helper).
|
||||
|
||||
Return the base transform for this layer.
|
||||
|
||||
.. _class_CanvasLayer_get_viewport:
|
||||
|
||||
- :ref:`RID<class_rid>` **get_viewport** **(** **)** const
|
||||
|
||||
Return the viewport RID for this layer.
|
||||
|
||||
.. _class_CanvasLayer_get_world_2d:
|
||||
|
||||
- :ref:`World2D<class_world2d>` **get_world_2d** **(** **)** const
|
||||
|
||||
Return the :ref:`World2D<class_world2d>` used by this layer.
|
||||
|
||||
.. _class_CanvasLayer_set_custom_viewport:
|
||||
|
||||
- void **set_custom_viewport** **(** :ref:`Viewport<class_viewport>` viewport **)**
|
||||
|
||||
.. _class_CanvasLayer_set_layer:
|
||||
|
||||
- void **set_layer** **(** :ref:`int<class_int>` layer **)**
|
||||
|
||||
@@ -21,6 +21,8 @@ Member Functions
|
||||
+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`add_point<class_Curve2D_add_point>` **(** :ref:`Vector2<class_vector2>` pos, :ref:`Vector2<class_vector2>` in=Vector2(0, 0), :ref:`Vector2<class_vector2>` out=Vector2(0, 0), :ref:`int<class_int>` atpos=-1 **)** |
|
||||
+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`clear_points<class_Curve2D_clear_points>` **(** **)** |
|
||||
+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_bake_interval<class_Curve2D_get_bake_interval>` **(** **)** const |
|
||||
+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_baked_length<class_Curve2D_get_baked_length>` **(** **)** const |
|
||||
@@ -72,6 +74,10 @@ Adds a point to a curve, at position "pos", with control points "in" and "out".
|
||||
|
||||
If "atpos" is given, the point is inserted before the point number "atpos", moving that point (and every point after) after the inserted point. If "atpos" is not given, or is an illegal value (atpos <0 or atpos >= :ref:`get_point_count<class_Curve2D_get_point_count>`), the point will be appended at the end of the point list.
|
||||
|
||||
.. _class_Curve2D_clear_points:
|
||||
|
||||
- void **clear_points** **(** **)**
|
||||
|
||||
.. _class_Curve2D_get_bake_interval:
|
||||
|
||||
- :ref:`float<class_float>` **get_bake_interval** **(** **)** const
|
||||
|
||||
@@ -21,6 +21,8 @@ Member Functions
|
||||
+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`add_point<class_Curve3D_add_point>` **(** :ref:`Vector3<class_vector3>` pos, :ref:`Vector3<class_vector3>` in=Vector3(0, 0, 0), :ref:`Vector3<class_vector3>` out=Vector3(0, 0, 0), :ref:`int<class_int>` atpos=-1 **)** |
|
||||
+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`clear_points<class_Curve3D_clear_points>` **(** **)** |
|
||||
+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_bake_interval<class_Curve3D_get_bake_interval>` **(** **)** const |
|
||||
+------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_baked_length<class_Curve3D_get_baked_length>` **(** **)** const |
|
||||
@@ -78,6 +80,10 @@ Adds a point to a curve, at position "pos", with control points "in" and "out".
|
||||
|
||||
If "atpos" is given, the point is inserted before the point number "atpos", moving that point (and every point after) after the inserted point. If "atpos" is not given, or is an illegal value (atpos <0 or atpos >= :ref:`get_point_count<class_Curve3D_get_point_count>`), the point will be appended at the end of the point list.
|
||||
|
||||
.. _class_Curve3D_clear_points:
|
||||
|
||||
- void **clear_points** **(** **)**
|
||||
|
||||
.. _class_Curve3D_get_bake_interval:
|
||||
|
||||
- :ref:`float<class_float>` **get_bake_interval** **(** **)** const
|
||||
|
||||
@@ -39,6 +39,8 @@ Member Functions
|
||||
+------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`edit<class_EditorPlugin_edit>` **(** :ref:`Object<class_object>` object **)** virtual |
|
||||
+------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`edit_resource<class_EditorPlugin_edit_resource>` **(** :ref:`Object<class_object>` arg0 **)** |
|
||||
+------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`forward_input_event<class_EditorPlugin_forward_input_event>` **(** :ref:`InputEvent<class_inputevent>` event **)** virtual |
|
||||
+------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`forward_spatial_input_event<class_EditorPlugin_forward_spatial_input_event>` **(** :ref:`Camera<class_camera>` camera, :ref:`InputEvent<class_inputevent>` event **)** virtual |
|
||||
@@ -192,6 +194,12 @@ This is used for plugins that create gizmos used by the spatial editor. Just che
|
||||
|
||||
This function is used for plugins that edit specific object types (nodes or resources). It requests the editor to edit the given object.
|
||||
|
||||
.. _class_EditorPlugin_edit_resource:
|
||||
|
||||
- void **edit_resource** **(** :ref:`Object<class_object>` arg0 **)**
|
||||
|
||||
Tells the editor to handle the edit of the given resource. For example, if you pass a script as argument, the editor will open the script editor.
|
||||
|
||||
.. _class_EditorPlugin_forward_input_event:
|
||||
|
||||
- :ref:`bool<class_bool>` **forward_input_event** **(** :ref:`InputEvent<class_inputevent>` event **)** virtual
|
||||
|
||||
@@ -200,7 +200,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8)
|
||||
|
||||
- :ref:`int<class_int>` **get_status** **(** **)** const
|
||||
|
||||
Returns a status string like STATUS_REQUESTING. Need to call :ref:`poll<class_HTTPClient_poll>` in order to get status updates.
|
||||
Returns a STATUS\_\* enum constant. Need to call :ref:`poll<class_HTTPClient_poll>` in order to get status updates.
|
||||
|
||||
.. _class_HTTPClient_has_response:
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ Member Functions
|
||||
+--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`can_teleport_to<class_KinematicBody_can_teleport_to>` **(** :ref:`Vector3<class_vector3>` position **)** |
|
||||
+--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Object<class_object>` | :ref:`get_collider<class_KinematicBody_get_collider>` **(** **)** const |
|
||||
| :ref:`Variant<class_variant>` | :ref:`get_collider<class_KinematicBody_get_collider>` **(** **)** const |
|
||||
+--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_collider_shape<class_KinematicBody_get_collider_shape>` **(** **)** const |
|
||||
+--------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
@@ -102,7 +102,7 @@ Returns whether the KinematicBody can be teleported to the destination given as
|
||||
|
||||
.. _class_KinematicBody_get_collider:
|
||||
|
||||
- :ref:`Object<class_object>` **get_collider** **(** **)** const
|
||||
- :ref:`Variant<class_variant>` **get_collider** **(** **)** const
|
||||
|
||||
Return the body that collided with this one.
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ Member Functions
|
||||
----------------
|
||||
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Object<class_object>` | :ref:`get_collider<class_KinematicBody2D_get_collider>` **(** **)** const |
|
||||
| :ref:`Variant<class_variant>` | :ref:`get_collider<class_KinematicBody2D_get_collider>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Variant<class_variant>` | :ref:`get_collider_metadata<class_KinematicBody2D_get_collider_metadata>` **(** **)** const |
|
||||
+--------------------------------+------------------------------------------------------------------------------------------------------------------------+
|
||||
@@ -62,7 +62,7 @@ Member Function Description
|
||||
|
||||
.. _class_KinematicBody2D_get_collider:
|
||||
|
||||
- :ref:`Object<class_object>` **get_collider** **(** **)** const
|
||||
- :ref:`Variant<class_variant>` **get_collider** **(** **)** const
|
||||
|
||||
Return the body that collided with this one.
|
||||
|
||||
|
||||
@@ -27,6 +27,12 @@ Member Functions
|
||||
+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_global_pos<class_Node2D_get_global_pos>` **(** **)** const |
|
||||
+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_global_rot<class_Node2D_get_global_rot>` **(** **)** const |
|
||||
+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_global_rotd<class_Node2D_get_global_rotd>` **(** **)** const |
|
||||
+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_global_scale<class_Node2D_get_global_scale>` **(** **)** const |
|
||||
+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Vector2<class_vector2>` | :ref:`get_pos<class_Node2D_get_pos>` **(** **)** const |
|
||||
+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Matrix32<class_matrix32>` | :ref:`get_relative_transform_to_parent<class_Node2D_get_relative_transform_to_parent>` **(** :ref:`Object<class_object>` parent **)** const |
|
||||
@@ -55,6 +61,12 @@ Member Functions
|
||||
+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_global_pos<class_Node2D_set_global_pos>` **(** :ref:`Vector2<class_vector2>` pos **)** |
|
||||
+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_global_rot<class_Node2D_set_global_rot>` **(** :ref:`float<class_float>` radians **)** |
|
||||
+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_global_rotd<class_Node2D_set_global_rotd>` **(** :ref:`float<class_float>` degrees **)** |
|
||||
+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_global_scale<class_Node2D_set_global_scale>` **(** :ref:`Vector2<class_vector2>` scale **)** |
|
||||
+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_global_transform<class_Node2D_set_global_transform>` **(** :ref:`Matrix32<class_matrix32>` xform **)** |
|
||||
+----------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_pos<class_Node2D_set_pos>` **(** :ref:`Vector2<class_vector2>` pos **)** |
|
||||
@@ -100,6 +112,24 @@ Return the rotation angle in radians needed for the 2d node to point at 'point'
|
||||
|
||||
Return the global position of the 2D node.
|
||||
|
||||
.. _class_Node2D_get_global_rot:
|
||||
|
||||
- :ref:`float<class_float>` **get_global_rot** **(** **)** const
|
||||
|
||||
Return the global rotation in radians of the 2D node.
|
||||
|
||||
.. _class_Node2D_get_global_rotd:
|
||||
|
||||
- :ref:`float<class_float>` **get_global_rotd** **(** **)** const
|
||||
|
||||
Return the global rotation in degrees of the 2D node.
|
||||
|
||||
.. _class_Node2D_get_global_scale:
|
||||
|
||||
- :ref:`Vector2<class_vector2>` **get_global_scale** **(** **)** const
|
||||
|
||||
Return the global scale of the 2D node.
|
||||
|
||||
.. _class_Node2D_get_pos:
|
||||
|
||||
- :ref:`Vector2<class_vector2>` **get_pos** **(** **)** const
|
||||
@@ -182,6 +212,24 @@ Apply the 'ratio' scale to the 2D node, according to its current scale value.
|
||||
|
||||
Set the global position of the 2D node to 'pos'.
|
||||
|
||||
.. _class_Node2D_set_global_rot:
|
||||
|
||||
- void **set_global_rot** **(** :ref:`float<class_float>` radians **)**
|
||||
|
||||
Set the global rotation in radians of the 2D node.
|
||||
|
||||
.. _class_Node2D_set_global_rotd:
|
||||
|
||||
- void **set_global_rotd** **(** :ref:`float<class_float>` degrees **)**
|
||||
|
||||
Set the global rotation in degrees of the 2D node.
|
||||
|
||||
.. _class_Node2D_set_global_scale:
|
||||
|
||||
- void **set_global_scale** **(** :ref:`Vector2<class_vector2>` scale **)**
|
||||
|
||||
Set the global scale of the 2D node.
|
||||
|
||||
.. _class_Node2D_set_global_transform:
|
||||
|
||||
- void **set_global_transform** **(** :ref:`Matrix32<class_matrix32>` xform **)**
|
||||
|
||||
@@ -63,6 +63,8 @@ Member Functions
|
||||
+----------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`String<class_string>` | :ref:`get_executable_path<class_OS_get_executable_path>` **(** **)** const |
|
||||
+----------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_exit_code<class_OS_get_exit_code>` **(** **)** const |
|
||||
+----------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`int<class_int>` | :ref:`get_frames_drawn<class_OS_get_frames_drawn>` **(** **)** |
|
||||
+----------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`float<class_float>` | :ref:`get_frames_per_second<class_OS_get_frames_per_second>` **(** **)** const |
|
||||
@@ -191,6 +193,8 @@ Member Functions
|
||||
+----------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_current_screen<class_OS_set_current_screen>` **(** :ref:`int<class_int>` screen **)** |
|
||||
+----------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_exit_code<class_OS_set_exit_code>` **(** :ref:`int<class_int>` code **)** |
|
||||
+----------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_icon<class_OS_set_icon>` **(** :ref:`Image<class_image>` icon **)** |
|
||||
+----------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_iterations_per_second<class_OS_set_iterations_per_second>` **(** :ref:`int<class_int>` iterations_per_second **)** |
|
||||
@@ -432,6 +436,10 @@ Return an environment variable.
|
||||
|
||||
Return the path to the current engine executable.
|
||||
|
||||
.. _class_OS_get_exit_code:
|
||||
|
||||
- :ref:`int<class_int>` **get_exit_code** **(** **)** const
|
||||
|
||||
.. _class_OS_get_frames_drawn:
|
||||
|
||||
- :ref:`int<class_int>` **get_frames_drawn** **(** **)**
|
||||
@@ -788,6 +796,10 @@ Set clipboard to the OS.
|
||||
|
||||
- void **set_current_screen** **(** :ref:`int<class_int>` screen **)**
|
||||
|
||||
.. _class_OS_set_exit_code:
|
||||
|
||||
- void **set_exit_code** **(** :ref:`int<class_int>` code **)**
|
||||
|
||||
.. _class_OS_set_icon:
|
||||
|
||||
- void **set_icon** **(** :ref:`Image<class_image>` icon **)**
|
||||
|
||||
@@ -61,6 +61,8 @@ Member Functions
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`String<class_string>` | :ref:`get_item_tooltip<class_PopupMenu_get_item_tooltip>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_hide_on_item_selection<class_PopupMenu_is_hide_on_item_selection>` **(** **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_item_checkable<class_PopupMenu_is_item_checkable>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`is_item_checked<class_PopupMenu_is_item_checked>` **(** :ref:`int<class_int>` idx **)** const |
|
||||
@@ -71,6 +73,8 @@ Member Functions
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`remove_item<class_PopupMenu_remove_item>` **(** :ref:`int<class_int>` idx **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_hide_on_item_selection<class_PopupMenu_set_hide_on_item_selection>` **(** :ref:`bool<class_bool>` enable **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_item_ID<class_PopupMenu_set_item_ID>` **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` id **)** |
|
||||
+----------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_item_accelerator<class_PopupMenu_set_item_accelerator>` **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` accel **)** |
|
||||
@@ -225,6 +229,12 @@ Return the text of the item at index "idx".
|
||||
|
||||
- :ref:`String<class_string>` **get_item_tooltip** **(** :ref:`int<class_int>` idx **)** const
|
||||
|
||||
.. _class_PopupMenu_is_hide_on_item_selection:
|
||||
|
||||
- :ref:`bool<class_bool>` **is_hide_on_item_selection** **(** **)**
|
||||
|
||||
Returns a boolean that indicates whether or not the PopupMenu will hide on item selection.
|
||||
|
||||
.. _class_PopupMenu_is_item_checkable:
|
||||
|
||||
- :ref:`bool<class_bool>` **is_item_checkable** **(** :ref:`int<class_int>` idx **)** const
|
||||
@@ -255,6 +265,12 @@ Return whether the item is a seperator. If it is, it would be displayed as a lin
|
||||
|
||||
Removes the item at index "idx" from the menu. Note that the indexes of items after the removed item are going to be shifted by one.
|
||||
|
||||
.. _class_PopupMenu_set_hide_on_item_selection:
|
||||
|
||||
- void **set_hide_on_item_selection** **(** :ref:`bool<class_bool>` enable **)**
|
||||
|
||||
Sets whether or not the PopupMenu will hide on item selection.
|
||||
|
||||
.. _class_PopupMenu_set_item_ID:
|
||||
|
||||
- void **set_item_ID** **(** :ref:`int<class_int>` idx, :ref:`int<class_int>` id **)**
|
||||
|
||||
@@ -161,7 +161,7 @@ Return the current body bounciness.
|
||||
|
||||
- :ref:`Array<class_array>` **get_colliding_bodies** **(** **)** const
|
||||
|
||||
Return a list of the bodies colliding with this one.
|
||||
Return a list of the bodies colliding with this one. By default, number of max contacts reported is at 0 , see :ref:`set_max_contacts_reported<class_RigidBody_set_max_contacts_reported>` to increase it.
|
||||
|
||||
.. _class_RigidBody_get_friction:
|
||||
|
||||
|
||||
@@ -192,7 +192,7 @@ Return the body bounciness.
|
||||
|
||||
- :ref:`Array<class_array>` **get_colliding_bodies** **(** **)** const
|
||||
|
||||
Return a list of the bodies colliding with this one.
|
||||
Return a list of the bodies colliding with this one. By default, number of max contacts reported is at 0 , see :ref:`set_max_contacts_reported<class_RigidBody2D_set_max_contacts_reported>` to increase it. You must also enable contact monitor, see :ref:`set_contact_monitor<class_RigidBody2D_set_contact_monitor>`
|
||||
|
||||
.. _class_RigidBody2D_get_continuous_collision_detection_mode:
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ Member Functions
|
||||
+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`World<class_world>` | :ref:`get_world<class_Viewport_get_world>` **(** **)** const |
|
||||
+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`World2D<class_world2d>` | :ref:`get_world_2d<class_Viewport_get_world_2d>` **(** **)** const |
|
||||
+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Variant<class_variant>` | :ref:`gui_get_drag_data<class_Viewport_gui_get_drag_data>` **(** **)** const |
|
||||
+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`gui_has_modal_stack<class_Viewport_gui_has_modal_stack>` **(** **)** const |
|
||||
@@ -123,6 +125,8 @@ Member Functions
|
||||
+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_world<class_Viewport_set_world>` **(** :ref:`World<class_world>` world **)** |
|
||||
+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`set_world_2d<class_Viewport_set_world_2d>` **(** :ref:`World2D<class_world2d>` world_2d **)** |
|
||||
+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`unhandled_input<class_Viewport_unhandled_input>` **(** :ref:`InputEvent<class_inputevent>` local_event **)** |
|
||||
+--------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| void | :ref:`update_worlds<class_Viewport_update_worlds>` **(** **)** |
|
||||
@@ -281,6 +285,10 @@ Return the final, visible rect in global screen coordinates.
|
||||
|
||||
Return the 3D world of the viewport.
|
||||
|
||||
.. _class_Viewport_get_world_2d:
|
||||
|
||||
- :ref:`World2D<class_world2d>` **get_world_2d** **(** **)** const
|
||||
|
||||
.. _class_Viewport_gui_get_drag_data:
|
||||
|
||||
- :ref:`Variant<class_variant>` **gui_get_drag_data** **(** **)** const
|
||||
@@ -471,6 +479,10 @@ Make the viewport use a world separate from the parent viewport's world.
|
||||
|
||||
Change the 3D world of the viewport.
|
||||
|
||||
.. _class_Viewport_set_world_2d:
|
||||
|
||||
- void **set_world_2d** **(** :ref:`World2D<class_world2d>` world_2d **)**
|
||||
|
||||
.. _class_Viewport_unhandled_input:
|
||||
|
||||
- void **unhandled_input** **(** :ref:`InputEvent<class_inputevent>` local_event **)**
|
||||
|
||||
Reference in New Issue
Block a user