|
@@ -93,191 +93,199 @@ Properties
|
|
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
| :ref:`VisualScriptCustomNodes<class_VisualScriptCustomNodes>` | :ref:`VisualScriptCustomNodes<class_@GlobalScope_property_VisualScriptCustomNodes>` |
|
|
| :ref:`VisualScriptCustomNodes<class_VisualScriptCustomNodes>` | :ref:`VisualScriptCustomNodes<class_@GlobalScope_property_VisualScriptCustomNodes>` |
|
|
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`WorkerThreadPool<class_WorkerThreadPool>` | :ref:`WorkerThreadPool<class_@GlobalScope_property_WorkerThreadPool>` |
|
|
|
|
++---------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
| :ref:`XRServer<class_XRServer>` | :ref:`XRServer<class_@GlobalScope_property_XRServer>` |
|
|
| :ref:`XRServer<class_XRServer>` | :ref:`XRServer<class_@GlobalScope_property_XRServer>` |
|
|
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
+---------------------------------------------------------------+-------------------------------------------------------------------------------------+
|
|
|
|
|
|
Methods
|
|
Methods
|
|
-------
|
|
-------
|
|
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Variant<class_Variant>` | :ref:`abs<class_@GlobalScope_method_abs>` **(** :ref:`Variant<class_Variant>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`absf<class_@GlobalScope_method_absf>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`absi<class_@GlobalScope_method_absi>` **(** :ref:`int<class_int>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`acos<class_@GlobalScope_method_acos>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`asin<class_@GlobalScope_method_asin>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`atan<class_@GlobalScope_method_atan>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`atan2<class_@GlobalScope_method_atan2>` **(** :ref:`float<class_float>` y, :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Variant<class_Variant>` | :ref:`bytes2var<class_@GlobalScope_method_bytes2var>` **(** :ref:`PackedByteArray<class_PackedByteArray>` bytes **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Variant<class_Variant>` | :ref:`bytes2var_with_objects<class_@GlobalScope_method_bytes2var_with_objects>` **(** :ref:`PackedByteArray<class_PackedByteArray>` bytes **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`ceil<class_@GlobalScope_method_ceil>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Variant<class_Variant>` | :ref:`clamp<class_@GlobalScope_method_clamp>` **(** :ref:`Variant<class_Variant>` value, :ref:`Variant<class_Variant>` min, :ref:`Variant<class_Variant>` max **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`clampf<class_@GlobalScope_method_clampf>` **(** :ref:`float<class_float>` value, :ref:`float<class_float>` min, :ref:`float<class_float>` max **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`clampi<class_@GlobalScope_method_clampi>` **(** :ref:`int<class_int>` value, :ref:`int<class_int>` min, :ref:`int<class_int>` max **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`cos<class_@GlobalScope_method_cos>` **(** :ref:`float<class_float>` angle_rad **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`cosh<class_@GlobalScope_method_cosh>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`cubic_interpolate<class_@GlobalScope_method_cubic_interpolate>` **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to, :ref:`float<class_float>` pre, :ref:`float<class_float>` post, :ref:`float<class_float>` weight **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`db2linear<class_@GlobalScope_method_db2linear>` **(** :ref:`float<class_float>` db **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`deg2rad<class_@GlobalScope_method_deg2rad>` **(** :ref:`float<class_float>` deg **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`ease<class_@GlobalScope_method_ease>` **(** :ref:`float<class_float>` x, :ref:`float<class_float>` curve **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`String<class_String>` | :ref:`error_string<class_@GlobalScope_method_error_string>` **(** :ref:`int<class_int>` error **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`exp<class_@GlobalScope_method_exp>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`floor<class_@GlobalScope_method_floor>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`fmod<class_@GlobalScope_method_fmod>` **(** :ref:`float<class_float>` x, :ref:`float<class_float>` y **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`fposmod<class_@GlobalScope_method_fposmod>` **(** :ref:`float<class_float>` x, :ref:`float<class_float>` y **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`hash<class_@GlobalScope_method_hash>` **(** :ref:`Variant<class_Variant>` variable **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Object<class_Object>` | :ref:`instance_from_id<class_@GlobalScope_method_instance_from_id>` **(** :ref:`int<class_int>` instance_id **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`inverse_lerp<class_@GlobalScope_method_inverse_lerp>` **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to, :ref:`float<class_float>` weight **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`bool<class_bool>` | :ref:`is_equal_approx<class_@GlobalScope_method_is_equal_approx>` **(** :ref:`float<class_float>` a, :ref:`float<class_float>` b **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`bool<class_bool>` | :ref:`is_inf<class_@GlobalScope_method_is_inf>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`bool<class_bool>` | :ref:`is_instance_id_valid<class_@GlobalScope_method_is_instance_id_valid>` **(** :ref:`int<class_int>` id **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`bool<class_bool>` | :ref:`is_instance_valid<class_@GlobalScope_method_is_instance_valid>` **(** :ref:`Variant<class_Variant>` instance **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`bool<class_bool>` | :ref:`is_nan<class_@GlobalScope_method_is_nan>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`bool<class_bool>` | :ref:`is_zero_approx<class_@GlobalScope_method_is_zero_approx>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`lerp<class_@GlobalScope_method_lerp>` **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to, :ref:`float<class_float>` weight **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`lerp_angle<class_@GlobalScope_method_lerp_angle>` **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to, :ref:`float<class_float>` weight **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`linear2db<class_@GlobalScope_method_linear2db>` **(** :ref:`float<class_float>` lin **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`log<class_@GlobalScope_method_log>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Variant<class_Variant>` | :ref:`max<class_@GlobalScope_method_max>` **(** ... **)** |vararg| |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`maxf<class_@GlobalScope_method_maxf>` **(** :ref:`float<class_float>` a, :ref:`float<class_float>` b **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`maxi<class_@GlobalScope_method_maxi>` **(** :ref:`int<class_int>` a, :ref:`int<class_int>` b **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Variant<class_Variant>` | :ref:`min<class_@GlobalScope_method_min>` **(** ... **)** |vararg| |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`minf<class_@GlobalScope_method_minf>` **(** :ref:`float<class_float>` a, :ref:`float<class_float>` b **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`mini<class_@GlobalScope_method_mini>` **(** :ref:`int<class_int>` a, :ref:`int<class_int>` b **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`move_toward<class_@GlobalScope_method_move_toward>` **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to, :ref:`float<class_float>` delta **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`nearest_po2<class_@GlobalScope_method_nearest_po2>` **(** :ref:`int<class_int>` value **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`pingpong<class_@GlobalScope_method_pingpong>` **(** :ref:`float<class_float>` value, :ref:`float<class_float>` length **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`posmod<class_@GlobalScope_method_posmod>` **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`pow<class_@GlobalScope_method_pow>` **(** :ref:`float<class_float>` base, :ref:`float<class_float>` exp **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| void | :ref:`print<class_@GlobalScope_method_print>` **(** ... **)** |vararg| |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| void | :ref:`print_verbose<class_@GlobalScope_method_print_verbose>` **(** ... **)** |vararg| |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| void | :ref:`printerr<class_@GlobalScope_method_printerr>` **(** ... **)** |vararg| |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| void | :ref:`printraw<class_@GlobalScope_method_printraw>` **(** ... **)** |vararg| |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| void | :ref:`prints<class_@GlobalScope_method_prints>` **(** ... **)** |vararg| |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| void | :ref:`printt<class_@GlobalScope_method_printt>` **(** ... **)** |vararg| |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| void | :ref:`push_error<class_@GlobalScope_method_push_error>` **(** ... **)** |vararg| |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| void | :ref:`push_warning<class_@GlobalScope_method_push_warning>` **(** ... **)** |vararg| |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`rad2deg<class_@GlobalScope_method_rad2deg>` **(** :ref:`float<class_float>` rad **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`PackedInt64Array<class_PackedInt64Array>` | :ref:`rand_from_seed<class_@GlobalScope_method_rand_from_seed>` **(** :ref:`int<class_int>` seed **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`randf<class_@GlobalScope_method_randf>` **(** **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`randf_range<class_@GlobalScope_method_randf_range>` **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`randfn<class_@GlobalScope_method_randfn>` **(** :ref:`float<class_float>` mean, :ref:`float<class_float>` deviation **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`randi<class_@GlobalScope_method_randi>` **(** **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`randi_range<class_@GlobalScope_method_randi_range>` **(** :ref:`int<class_int>` from, :ref:`int<class_int>` to **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| void | :ref:`randomize<class_@GlobalScope_method_randomize>` **(** **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`range_lerp<class_@GlobalScope_method_range_lerp>` **(** :ref:`float<class_float>` value, :ref:`float<class_float>` istart, :ref:`float<class_float>` istop, :ref:`float<class_float>` ostart, :ref:`float<class_float>` ostop **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`rid_allocate_id<class_@GlobalScope_method_rid_allocate_id>` **(** **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`RID<class_RID>` | :ref:`rid_from_int64<class_@GlobalScope_method_rid_from_int64>` **(** :ref:`int<class_int>` base **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`round<class_@GlobalScope_method_round>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| void | :ref:`seed<class_@GlobalScope_method_seed>` **(** :ref:`int<class_int>` base **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Variant<class_Variant>` | :ref:`sign<class_@GlobalScope_method_sign>` **(** :ref:`Variant<class_Variant>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`signf<class_@GlobalScope_method_signf>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`signi<class_@GlobalScope_method_signi>` **(** :ref:`int<class_int>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`sin<class_@GlobalScope_method_sin>` **(** :ref:`float<class_float>` angle_rad **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`sinh<class_@GlobalScope_method_sinh>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`smoothstep<class_@GlobalScope_method_smoothstep>` **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to, :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`snapped<class_@GlobalScope_method_snapped>` **(** :ref:`float<class_float>` x, :ref:`float<class_float>` step **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`sqrt<class_@GlobalScope_method_sqrt>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`step_decimals<class_@GlobalScope_method_step_decimals>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`String<class_String>` | :ref:`str<class_@GlobalScope_method_str>` **(** ... **)** |vararg| |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Variant<class_Variant>` | :ref:`str2var<class_@GlobalScope_method_str2var>` **(** :ref:`String<class_String>` string **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`tan<class_@GlobalScope_method_tan>` **(** :ref:`float<class_float>` angle_rad **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`tanh<class_@GlobalScope_method_tanh>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`typeof<class_@GlobalScope_method_typeof>` **(** :ref:`Variant<class_Variant>` variable **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`var2bytes<class_@GlobalScope_method_var2bytes>` **(** :ref:`Variant<class_Variant>` variable **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`var2bytes_with_objects<class_@GlobalScope_method_var2bytes_with_objects>` **(** :ref:`Variant<class_Variant>` variable **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`String<class_String>` | :ref:`var2str<class_@GlobalScope_method_var2str>` **(** :ref:`Variant<class_Variant>` variable **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`Variant<class_Variant>` | :ref:`weakref<class_@GlobalScope_method_weakref>` **(** :ref:`Variant<class_Variant>` obj **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`float<class_float>` | :ref:`wrapf<class_@GlobalScope_method_wrapf>` **(** :ref:`float<class_float>` value, :ref:`float<class_float>` min, :ref:`float<class_float>` max **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
-| :ref:`int<class_int>` | :ref:`wrapi<class_@GlobalScope_method_wrapi>` **(** :ref:`int<class_int>` value, :ref:`int<class_int>` min, :ref:`int<class_int>` max **)** |
|
|
|
|
-+-------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Variant<class_Variant>` | :ref:`abs<class_@GlobalScope_method_abs>` **(** :ref:`Variant<class_Variant>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`absf<class_@GlobalScope_method_absf>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`absi<class_@GlobalScope_method_absi>` **(** :ref:`int<class_int>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`acos<class_@GlobalScope_method_acos>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`asin<class_@GlobalScope_method_asin>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`atan<class_@GlobalScope_method_atan>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`atan2<class_@GlobalScope_method_atan2>` **(** :ref:`float<class_float>` y, :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`bezier_interpolate<class_@GlobalScope_method_bezier_interpolate>` **(** :ref:`float<class_float>` start, :ref:`float<class_float>` control_1, :ref:`float<class_float>` control_2, :ref:`float<class_float>` end, :ref:`float<class_float>` t **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Variant<class_Variant>` | :ref:`bytes2var<class_@GlobalScope_method_bytes2var>` **(** :ref:`PackedByteArray<class_PackedByteArray>` bytes **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Variant<class_Variant>` | :ref:`bytes2var_with_objects<class_@GlobalScope_method_bytes2var_with_objects>` **(** :ref:`PackedByteArray<class_PackedByteArray>` bytes **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`ceil<class_@GlobalScope_method_ceil>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Variant<class_Variant>` | :ref:`clamp<class_@GlobalScope_method_clamp>` **(** :ref:`Variant<class_Variant>` value, :ref:`Variant<class_Variant>` min, :ref:`Variant<class_Variant>` max **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`clampf<class_@GlobalScope_method_clampf>` **(** :ref:`float<class_float>` value, :ref:`float<class_float>` min, :ref:`float<class_float>` max **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`clampi<class_@GlobalScope_method_clampi>` **(** :ref:`int<class_int>` value, :ref:`int<class_int>` min, :ref:`int<class_int>` max **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`cos<class_@GlobalScope_method_cos>` **(** :ref:`float<class_float>` angle_rad **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`cosh<class_@GlobalScope_method_cosh>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`cubic_interpolate<class_@GlobalScope_method_cubic_interpolate>` **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to, :ref:`float<class_float>` pre, :ref:`float<class_float>` post, :ref:`float<class_float>` weight **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`db2linear<class_@GlobalScope_method_db2linear>` **(** :ref:`float<class_float>` db **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`deg2rad<class_@GlobalScope_method_deg2rad>` **(** :ref:`float<class_float>` deg **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`ease<class_@GlobalScope_method_ease>` **(** :ref:`float<class_float>` x, :ref:`float<class_float>` curve **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`String<class_String>` | :ref:`error_string<class_@GlobalScope_method_error_string>` **(** :ref:`int<class_int>` error **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`exp<class_@GlobalScope_method_exp>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`floor<class_@GlobalScope_method_floor>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`fmod<class_@GlobalScope_method_fmod>` **(** :ref:`float<class_float>` x, :ref:`float<class_float>` y **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`fposmod<class_@GlobalScope_method_fposmod>` **(** :ref:`float<class_float>` x, :ref:`float<class_float>` y **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`hash<class_@GlobalScope_method_hash>` **(** :ref:`Variant<class_Variant>` variable **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Object<class_Object>` | :ref:`instance_from_id<class_@GlobalScope_method_instance_from_id>` **(** :ref:`int<class_int>` instance_id **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`inverse_lerp<class_@GlobalScope_method_inverse_lerp>` **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to, :ref:`float<class_float>` weight **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`bool<class_bool>` | :ref:`is_equal_approx<class_@GlobalScope_method_is_equal_approx>` **(** :ref:`float<class_float>` a, :ref:`float<class_float>` b **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`bool<class_bool>` | :ref:`is_inf<class_@GlobalScope_method_is_inf>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`bool<class_bool>` | :ref:`is_instance_id_valid<class_@GlobalScope_method_is_instance_id_valid>` **(** :ref:`int<class_int>` id **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`bool<class_bool>` | :ref:`is_instance_valid<class_@GlobalScope_method_is_instance_valid>` **(** :ref:`Variant<class_Variant>` instance **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`bool<class_bool>` | :ref:`is_nan<class_@GlobalScope_method_is_nan>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`bool<class_bool>` | :ref:`is_zero_approx<class_@GlobalScope_method_is_zero_approx>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`lerp<class_@GlobalScope_method_lerp>` **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to, :ref:`float<class_float>` weight **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`lerp_angle<class_@GlobalScope_method_lerp_angle>` **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to, :ref:`float<class_float>` weight **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`linear2db<class_@GlobalScope_method_linear2db>` **(** :ref:`float<class_float>` lin **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`log<class_@GlobalScope_method_log>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Variant<class_Variant>` | :ref:`max<class_@GlobalScope_method_max>` **(** ... **)** |vararg| |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`maxf<class_@GlobalScope_method_maxf>` **(** :ref:`float<class_float>` a, :ref:`float<class_float>` b **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`maxi<class_@GlobalScope_method_maxi>` **(** :ref:`int<class_int>` a, :ref:`int<class_int>` b **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Variant<class_Variant>` | :ref:`min<class_@GlobalScope_method_min>` **(** ... **)** |vararg| |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`minf<class_@GlobalScope_method_minf>` **(** :ref:`float<class_float>` a, :ref:`float<class_float>` b **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`mini<class_@GlobalScope_method_mini>` **(** :ref:`int<class_int>` a, :ref:`int<class_int>` b **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`move_toward<class_@GlobalScope_method_move_toward>` **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to, :ref:`float<class_float>` delta **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`nearest_po2<class_@GlobalScope_method_nearest_po2>` **(** :ref:`int<class_int>` value **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`pingpong<class_@GlobalScope_method_pingpong>` **(** :ref:`float<class_float>` value, :ref:`float<class_float>` length **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`posmod<class_@GlobalScope_method_posmod>` **(** :ref:`int<class_int>` x, :ref:`int<class_int>` y **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`pow<class_@GlobalScope_method_pow>` **(** :ref:`float<class_float>` base, :ref:`float<class_float>` exp **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| void | :ref:`print<class_@GlobalScope_method_print>` **(** ... **)** |vararg| |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| void | :ref:`print_rich<class_@GlobalScope_method_print_rich>` **(** ... **)** |vararg| |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| void | :ref:`print_verbose<class_@GlobalScope_method_print_verbose>` **(** ... **)** |vararg| |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| void | :ref:`printerr<class_@GlobalScope_method_printerr>` **(** ... **)** |vararg| |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| void | :ref:`printraw<class_@GlobalScope_method_printraw>` **(** ... **)** |vararg| |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| void | :ref:`prints<class_@GlobalScope_method_prints>` **(** ... **)** |vararg| |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| void | :ref:`printt<class_@GlobalScope_method_printt>` **(** ... **)** |vararg| |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| void | :ref:`push_error<class_@GlobalScope_method_push_error>` **(** ... **)** |vararg| |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| void | :ref:`push_warning<class_@GlobalScope_method_push_warning>` **(** ... **)** |vararg| |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`rad2deg<class_@GlobalScope_method_rad2deg>` **(** :ref:`float<class_float>` rad **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`PackedInt64Array<class_PackedInt64Array>` | :ref:`rand_from_seed<class_@GlobalScope_method_rand_from_seed>` **(** :ref:`int<class_int>` seed **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`randf<class_@GlobalScope_method_randf>` **(** **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`randf_range<class_@GlobalScope_method_randf_range>` **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`randfn<class_@GlobalScope_method_randfn>` **(** :ref:`float<class_float>` mean, :ref:`float<class_float>` deviation **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`randi<class_@GlobalScope_method_randi>` **(** **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`randi_range<class_@GlobalScope_method_randi_range>` **(** :ref:`int<class_int>` from, :ref:`int<class_int>` to **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| void | :ref:`randomize<class_@GlobalScope_method_randomize>` **(** **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`range_lerp<class_@GlobalScope_method_range_lerp>` **(** :ref:`float<class_float>` value, :ref:`float<class_float>` istart, :ref:`float<class_float>` istop, :ref:`float<class_float>` ostart, :ref:`float<class_float>` ostop **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`rid_allocate_id<class_@GlobalScope_method_rid_allocate_id>` **(** **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`RID<class_RID>` | :ref:`rid_from_int64<class_@GlobalScope_method_rid_from_int64>` **(** :ref:`int<class_int>` base **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`round<class_@GlobalScope_method_round>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| void | :ref:`seed<class_@GlobalScope_method_seed>` **(** :ref:`int<class_int>` base **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Variant<class_Variant>` | :ref:`sign<class_@GlobalScope_method_sign>` **(** :ref:`Variant<class_Variant>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`signf<class_@GlobalScope_method_signf>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`signi<class_@GlobalScope_method_signi>` **(** :ref:`int<class_int>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`sin<class_@GlobalScope_method_sin>` **(** :ref:`float<class_float>` angle_rad **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`sinh<class_@GlobalScope_method_sinh>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`smoothstep<class_@GlobalScope_method_smoothstep>` **(** :ref:`float<class_float>` from, :ref:`float<class_float>` to, :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`snapped<class_@GlobalScope_method_snapped>` **(** :ref:`float<class_float>` x, :ref:`float<class_float>` step **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`sqrt<class_@GlobalScope_method_sqrt>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`step_decimals<class_@GlobalScope_method_step_decimals>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`String<class_String>` | :ref:`str<class_@GlobalScope_method_str>` **(** ... **)** |vararg| |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Variant<class_Variant>` | :ref:`str2var<class_@GlobalScope_method_str2var>` **(** :ref:`String<class_String>` string **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`tan<class_@GlobalScope_method_tan>` **(** :ref:`float<class_float>` angle_rad **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`tanh<class_@GlobalScope_method_tanh>` **(** :ref:`float<class_float>` x **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`typeof<class_@GlobalScope_method_typeof>` **(** :ref:`Variant<class_Variant>` variable **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`var2bytes<class_@GlobalScope_method_var2bytes>` **(** :ref:`Variant<class_Variant>` variable **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`PackedByteArray<class_PackedByteArray>` | :ref:`var2bytes_with_objects<class_@GlobalScope_method_var2bytes_with_objects>` **(** :ref:`Variant<class_Variant>` variable **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`String<class_String>` | :ref:`var2str<class_@GlobalScope_method_var2str>` **(** :ref:`Variant<class_Variant>` variable **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Variant<class_Variant>` | :ref:`weakref<class_@GlobalScope_method_weakref>` **(** :ref:`Variant<class_Variant>` obj **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`Variant<class_Variant>` | :ref:`wrap<class_@GlobalScope_method_wrap>` **(** :ref:`Variant<class_Variant>` value, :ref:`Variant<class_Variant>` min, :ref:`Variant<class_Variant>` max **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`float<class_float>` | :ref:`wrapf<class_@GlobalScope_method_wrapf>` **(** :ref:`float<class_float>` value, :ref:`float<class_float>` min, :ref:`float<class_float>` max **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
+| :ref:`int<class_int>` | :ref:`wrapi<class_@GlobalScope_method_wrapi>` **(** :ref:`int<class_int>` value, :ref:`int<class_int>` min, :ref:`int<class_int>` max **)** |
|
|
|
|
++-------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
|
|
Enumerations
|
|
Enumerations
|
|
------------
|
|
------------
|
|
@@ -2075,12 +2083,8 @@ Since :ref:`OK<class_@GlobalScope_constant_OK>` has value 0, and all other failu
|
|
|
|
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_EXP_EASING:
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_EXP_EASING:
|
|
|
|
|
|
-.. _class_@GlobalScope_constant_PROPERTY_HINT_LENGTH:
|
|
|
|
-
|
|
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_LINK:
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_LINK:
|
|
|
|
|
|
-.. _class_@GlobalScope_constant_PROPERTY_HINT_KEY_ACCEL:
|
|
|
|
-
|
|
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_FLAGS:
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_FLAGS:
|
|
|
|
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_LAYERS_2D_RENDER:
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_LAYERS_2D_RENDER:
|
|
@@ -2107,6 +2111,8 @@ Since :ref:`OK<class_@GlobalScope_constant_OK>` has value 0, and all other failu
|
|
|
|
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_MULTILINE_TEXT:
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_MULTILINE_TEXT:
|
|
|
|
|
|
|
|
+.. _class_@GlobalScope_constant_PROPERTY_HINT_EXPRESSION:
|
|
|
|
+
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_PLACEHOLDER_TEXT:
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_PLACEHOLDER_TEXT:
|
|
|
|
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_COLOR_NO_ALPHA:
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_COLOR_NO_ALPHA:
|
|
@@ -2155,6 +2161,8 @@ Since :ref:`OK<class_@GlobalScope_constant_OK>` has value 0, and all other failu
|
|
|
|
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_LOCALIZABLE_STRING:
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_LOCALIZABLE_STRING:
|
|
|
|
|
|
|
|
+.. _class_@GlobalScope_constant_PROPERTY_HINT_NODE_TYPE:
|
|
|
|
+
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_MAX:
|
|
.. _class_@GlobalScope_constant_PROPERTY_HINT_MAX:
|
|
|
|
|
|
enum **PropertyHint**:
|
|
enum **PropertyHint**:
|
|
@@ -2163,7 +2171,7 @@ enum **PropertyHint**:
|
|
|
|
|
|
- **PROPERTY_HINT_RANGE** = **1** --- Hints that an integer or float property should be within a range specified via the hint string ``"min,max"`` or ``"min,max,step"``. The hint string can optionally include ``"or_greater"`` and/or ``"or_lesser"`` to allow manual input going respectively above the max or below the min values. Example: ``"-360,360,1,or_greater,or_lesser"``.
|
|
- **PROPERTY_HINT_RANGE** = **1** --- Hints that an integer or float property should be within a range specified via the hint string ``"min,max"`` or ``"min,max,step"``. The hint string can optionally include ``"or_greater"`` and/or ``"or_lesser"`` to allow manual input going respectively above the max or below the min values. Example: ``"-360,360,1,or_greater,or_lesser"``.
|
|
|
|
|
|
-Additionally, other keywords can be included: "exp" for exponential range editing, "radians" for editing radian angles in degrees, "degrees" to hint at an angle and "noslider" to hide the slider.
|
|
|
|
|
|
+Additionally, other keywords can be included: "exp" for exponential range editing, "radians" for editing radian angles in degrees, "degrees" to hint at an angle and "no_slider" to hide the slider.
|
|
|
|
|
|
- **PROPERTY_HINT_ENUM** = **2** --- Hints that an integer, float or string property is an enumerated value to pick in a list specified via a hint string.
|
|
- **PROPERTY_HINT_ENUM** = **2** --- Hints that an integer, float or string property is an enumerated value to pick in a list specified via a hint string.
|
|
|
|
|
|
@@ -2175,49 +2183,47 @@ Unlike :ref:`PROPERTY_HINT_ENUM<class_@GlobalScope_constant_PROPERTY_HINT_ENUM>`
|
|
|
|
|
|
- **PROPERTY_HINT_EXP_EASING** = **4** --- Hints that a float property should be edited via an exponential easing function. The hint string can include ``"attenuation"`` to flip the curve horizontally and/or ``"inout"`` to also include in/out easing.
|
|
- **PROPERTY_HINT_EXP_EASING** = **4** --- Hints that a float property should be edited via an exponential easing function. The hint string can include ``"attenuation"`` to flip the curve horizontally and/or ``"inout"`` to also include in/out easing.
|
|
|
|
|
|
-- **PROPERTY_HINT_LENGTH** = **5** --- Deprecated hint, unused.
|
|
|
|
-
|
|
|
|
-- **PROPERTY_HINT_LINK** = **6** --- Hints that a vector property should allow linking values (e.g. to edit both ``x`` and ``y`` together).
|
|
|
|
|
|
+- **PROPERTY_HINT_LINK** = **5** --- Hints that a vector property should allow linking values (e.g. to edit both ``x`` and ``y`` together).
|
|
|
|
|
|
-- **PROPERTY_HINT_KEY_ACCEL** = **7** --- Deprecated hint, unused.
|
|
|
|
|
|
+- **PROPERTY_HINT_FLAGS** = **6** --- Hints that an integer property is a bitmask with named bit flags. For example, to allow toggling bits 0, 1, 2 and 4, the hint could be something like ``"Bit0,Bit1,Bit2,,Bit4"``.
|
|
|
|
|
|
-- **PROPERTY_HINT_FLAGS** = **8** --- Hints that an integer property is a bitmask with named bit flags. For example, to allow toggling bits 0, 1, 2 and 4, the hint could be something like ``"Bit0,Bit1,Bit2,,Bit4"``.
|
|
|
|
|
|
+- **PROPERTY_HINT_LAYERS_2D_RENDER** = **7** --- Hints that an integer property is a bitmask using the optionally named 2D render layers.
|
|
|
|
|
|
-- **PROPERTY_HINT_LAYERS_2D_RENDER** = **9** --- Hints that an integer property is a bitmask using the optionally named 2D render layers.
|
|
|
|
|
|
+- **PROPERTY_HINT_LAYERS_2D_PHYSICS** = **8** --- Hints that an integer property is a bitmask using the optionally named 2D physics layers.
|
|
|
|
|
|
-- **PROPERTY_HINT_LAYERS_2D_PHYSICS** = **10** --- Hints that an integer property is a bitmask using the optionally named 2D physics layers.
|
|
|
|
|
|
+- **PROPERTY_HINT_LAYERS_2D_NAVIGATION** = **9** --- Hints that an integer property is a bitmask using the optionally named 2D navigation layers.
|
|
|
|
|
|
-- **PROPERTY_HINT_LAYERS_2D_NAVIGATION** = **11** --- Hints that an integer property is a bitmask using the optionally named 2D navigation layers.
|
|
|
|
|
|
+- **PROPERTY_HINT_LAYERS_3D_RENDER** = **10** --- Hints that an integer property is a bitmask using the optionally named 3D render layers.
|
|
|
|
|
|
-- **PROPERTY_HINT_LAYERS_3D_RENDER** = **12** --- Hints that an integer property is a bitmask using the optionally named 3D render layers.
|
|
|
|
|
|
+- **PROPERTY_HINT_LAYERS_3D_PHYSICS** = **11** --- Hints that an integer property is a bitmask using the optionally named 3D physics layers.
|
|
|
|
|
|
-- **PROPERTY_HINT_LAYERS_3D_PHYSICS** = **13** --- Hints that an integer property is a bitmask using the optionally named 3D physics layers.
|
|
|
|
|
|
+- **PROPERTY_HINT_LAYERS_3D_NAVIGATION** = **12** --- Hints that an integer property is a bitmask using the optionally named 3D navigation layers.
|
|
|
|
|
|
-- **PROPERTY_HINT_LAYERS_3D_NAVIGATION** = **14** --- Hints that an integer property is a bitmask using the optionally named 3D navigation layers.
|
|
|
|
|
|
+- **PROPERTY_HINT_FILE** = **13** --- Hints that a string property is a path to a file. Editing it will show a file dialog for picking the path. The hint string can be a set of filters with wildcards like ``"*.png,*.jpg"``.
|
|
|
|
|
|
-- **PROPERTY_HINT_FILE** = **15** --- Hints that a string property is a path to a file. Editing it will show a file dialog for picking the path. The hint string can be a set of filters with wildcards like ``"*.png,*.jpg"``.
|
|
|
|
|
|
+- **PROPERTY_HINT_DIR** = **14** --- Hints that a string property is a path to a directory. Editing it will show a file dialog for picking the path.
|
|
|
|
|
|
-- **PROPERTY_HINT_DIR** = **16** --- Hints that a string property is a path to a directory. Editing it will show a file dialog for picking the path.
|
|
|
|
|
|
+- **PROPERTY_HINT_GLOBAL_FILE** = **15** --- Hints that a string property is an absolute path to a file outside the project folder. Editing it will show a file dialog for picking the path. The hint string can be a set of filters with wildcards like ``"*.png,*.jpg"``.
|
|
|
|
|
|
-- **PROPERTY_HINT_GLOBAL_FILE** = **17** --- Hints that a string property is an absolute path to a file outside the project folder. Editing it will show a file dialog for picking the path. The hint string can be a set of filters with wildcards like ``"*.png,*.jpg"``.
|
|
|
|
|
|
+- **PROPERTY_HINT_GLOBAL_DIR** = **16** --- Hints that a string property is an absolute path to a directory outside the project folder. Editing it will show a file dialog for picking the path.
|
|
|
|
|
|
-- **PROPERTY_HINT_GLOBAL_DIR** = **18** --- Hints that a string property is an absolute path to a directory outside the project folder. Editing it will show a file dialog for picking the path.
|
|
|
|
|
|
+- **PROPERTY_HINT_RESOURCE_TYPE** = **17** --- Hints that a property is an instance of a :ref:`Resource<class_Resource>`-derived type, optionally specified via the hint string (e.g. ``"Texture2D"``). Editing it will show a popup menu of valid resource types to instantiate.
|
|
|
|
|
|
-- **PROPERTY_HINT_RESOURCE_TYPE** = **19** --- Hints that a property is an instance of a :ref:`Resource<class_Resource>`-derived type, optionally specified via the hint string (e.g. ``"Texture2D"``). Editing it will show a popup menu of valid resource types to instantiate.
|
|
|
|
|
|
+- **PROPERTY_HINT_MULTILINE_TEXT** = **18** --- Hints that a string property is text with line breaks. Editing it will show a text input field where line breaks can be typed.
|
|
|
|
|
|
-- **PROPERTY_HINT_MULTILINE_TEXT** = **20** --- Hints that a string property is text with line breaks. Editing it will show a text input field where line breaks can be typed.
|
|
|
|
|
|
+- **PROPERTY_HINT_EXPRESSION** = **19** --- Hints that a string property is an :ref:`Expression<class_Expression>`.
|
|
|
|
|
|
-- **PROPERTY_HINT_PLACEHOLDER_TEXT** = **21** --- Hints that a string property should have a placeholder text visible on its input field, whenever the property is empty. The hint string is the placeholder text to use.
|
|
|
|
|
|
+- **PROPERTY_HINT_PLACEHOLDER_TEXT** = **20** --- Hints that a string property should have a placeholder text visible on its input field, whenever the property is empty. The hint string is the placeholder text to use.
|
|
|
|
|
|
-- **PROPERTY_HINT_COLOR_NO_ALPHA** = **22** --- Hints that a color property should be edited without changing its alpha component, i.e. only R, G and B channels are edited.
|
|
|
|
|
|
+- **PROPERTY_HINT_COLOR_NO_ALPHA** = **21** --- Hints that a color property should be edited without changing its alpha component, i.e. only R, G and B channels are edited.
|
|
|
|
|
|
-- **PROPERTY_HINT_IMAGE_COMPRESS_LOSSY** = **23** --- Hints that an image is compressed using lossy compression.
|
|
|
|
|
|
+- **PROPERTY_HINT_IMAGE_COMPRESS_LOSSY** = **22** --- Hints that an image is compressed using lossy compression.
|
|
|
|
|
|
-- **PROPERTY_HINT_IMAGE_COMPRESS_LOSSLESS** = **24** --- Hints that an image is compressed using lossless compression.
|
|
|
|
|
|
+- **PROPERTY_HINT_IMAGE_COMPRESS_LOSSLESS** = **23** --- Hints that an image is compressed using lossless compression.
|
|
|
|
|
|
-- **PROPERTY_HINT_OBJECT_ID** = **25**
|
|
|
|
|
|
+- **PROPERTY_HINT_OBJECT_ID** = **24**
|
|
|
|
|
|
-- **PROPERTY_HINT_TYPE_STRING** = **26** --- Hint that a property represents a particular type. If a property is :ref:`TYPE_STRING<class_@GlobalScope_constant_TYPE_STRING>`, allows to set a type from the create dialog. If you need to create an :ref:`Array<class_Array>` to contain elements of a specific type, the ``hint_string`` must encode nested types using ``":"`` and ``"/"`` for specifying :ref:`Resource<class_Resource>` types. For instance:
|
|
|
|
|
|
+- **PROPERTY_HINT_TYPE_STRING** = **25** --- Hint that a property represents a particular type. If a property is :ref:`TYPE_STRING<class_@GlobalScope_constant_TYPE_STRING>`, allows to set a type from the create dialog. If you need to create an :ref:`Array<class_Array>` to contain elements of a specific type, the ``hint_string`` must encode nested types using ``":"`` and ``"/"`` for specifying :ref:`Resource<class_Resource>` types. For instance:
|
|
|
|
|
|
::
|
|
::
|
|
|
|
|
|
@@ -2228,41 +2234,43 @@ Unlike :ref:`PROPERTY_HINT_ENUM<class_@GlobalScope_constant_PROPERTY_HINT_ENUM>`
|
|
|
|
|
|
\ **Note:** The final colon is required to specify for properly detecting built-in types.
|
|
\ **Note:** The final colon is required to specify for properly detecting built-in types.
|
|
|
|
|
|
-- **PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE** = **27**
|
|
|
|
|
|
+- **PROPERTY_HINT_NODE_PATH_TO_EDITED_NODE** = **26**
|
|
|
|
+
|
|
|
|
+- **PROPERTY_HINT_METHOD_OF_VARIANT_TYPE** = **27**
|
|
|
|
|
|
-- **PROPERTY_HINT_METHOD_OF_VARIANT_TYPE** = **28**
|
|
|
|
|
|
+- **PROPERTY_HINT_METHOD_OF_BASE_TYPE** = **28**
|
|
|
|
|
|
-- **PROPERTY_HINT_METHOD_OF_BASE_TYPE** = **29**
|
|
|
|
|
|
+- **PROPERTY_HINT_METHOD_OF_INSTANCE** = **29**
|
|
|
|
|
|
-- **PROPERTY_HINT_METHOD_OF_INSTANCE** = **30**
|
|
|
|
|
|
+- **PROPERTY_HINT_METHOD_OF_SCRIPT** = **30**
|
|
|
|
|
|
-- **PROPERTY_HINT_METHOD_OF_SCRIPT** = **31**
|
|
|
|
|
|
+- **PROPERTY_HINT_PROPERTY_OF_VARIANT_TYPE** = **31**
|
|
|
|
|
|
-- **PROPERTY_HINT_PROPERTY_OF_VARIANT_TYPE** = **32**
|
|
|
|
|
|
+- **PROPERTY_HINT_PROPERTY_OF_BASE_TYPE** = **32**
|
|
|
|
|
|
-- **PROPERTY_HINT_PROPERTY_OF_BASE_TYPE** = **33**
|
|
|
|
|
|
+- **PROPERTY_HINT_PROPERTY_OF_INSTANCE** = **33**
|
|
|
|
|
|
-- **PROPERTY_HINT_PROPERTY_OF_INSTANCE** = **34**
|
|
|
|
|
|
+- **PROPERTY_HINT_PROPERTY_OF_SCRIPT** = **34**
|
|
|
|
|
|
-- **PROPERTY_HINT_PROPERTY_OF_SCRIPT** = **35**
|
|
|
|
|
|
+- **PROPERTY_HINT_OBJECT_TOO_BIG** = **35**
|
|
|
|
|
|
-- **PROPERTY_HINT_OBJECT_TOO_BIG** = **36**
|
|
|
|
|
|
+- **PROPERTY_HINT_NODE_PATH_VALID_TYPES** = **36**
|
|
|
|
|
|
-- **PROPERTY_HINT_NODE_PATH_VALID_TYPES** = **37**
|
|
|
|
|
|
+- **PROPERTY_HINT_SAVE_FILE** = **37**
|
|
|
|
|
|
-- **PROPERTY_HINT_SAVE_FILE** = **38**
|
|
|
|
|
|
+- **PROPERTY_HINT_GLOBAL_SAVE_FILE** = **38**
|
|
|
|
|
|
-- **PROPERTY_HINT_GLOBAL_SAVE_FILE** = **39**
|
|
|
|
|
|
+- **PROPERTY_HINT_INT_IS_OBJECTID** = **39**
|
|
|
|
|
|
-- **PROPERTY_HINT_INT_IS_OBJECTID** = **40**
|
|
|
|
|
|
+- **PROPERTY_HINT_INT_IS_POINTER** = **41**
|
|
|
|
|
|
-- **PROPERTY_HINT_INT_IS_POINTER** = **42**
|
|
|
|
|
|
+- **PROPERTY_HINT_ARRAY_TYPE** = **40**
|
|
|
|
|
|
-- **PROPERTY_HINT_ARRAY_TYPE** = **41**
|
|
|
|
|
|
+- **PROPERTY_HINT_LOCALE_ID** = **42** --- Hints that a string property is a locale code. Editing it will show a locale dialog for picking language and country.
|
|
|
|
|
|
-- **PROPERTY_HINT_LOCALE_ID** = **43** --- Hints that a string property is a locale code. Editing it will show a locale dialog for picking language and country.
|
|
|
|
|
|
+- **PROPERTY_HINT_LOCALIZABLE_STRING** = **43** --- Hints that a dictionary property is string translation map. Dictionary keys are locale codes and, values are translated strings.
|
|
|
|
|
|
-- **PROPERTY_HINT_LOCALIZABLE_STRING** = **44** --- Hints that a dictionary property is string translation map. Dictionary keys are locale codes and, values are translated strings.
|
|
|
|
|
|
+- **PROPERTY_HINT_NODE_TYPE** = **44**
|
|
|
|
|
|
- **PROPERTY_HINT_MAX** = **45**
|
|
- **PROPERTY_HINT_MAX** = **45**
|
|
|
|
|
|
@@ -2276,10 +2284,6 @@ Unlike :ref:`PROPERTY_HINT_ENUM<class_@GlobalScope_constant_PROPERTY_HINT_ENUM>`
|
|
|
|
|
|
.. _class_@GlobalScope_constant_PROPERTY_USAGE_EDITOR:
|
|
.. _class_@GlobalScope_constant_PROPERTY_USAGE_EDITOR:
|
|
|
|
|
|
-.. _class_@GlobalScope_constant_PROPERTY_USAGE_NETWORK:
|
|
|
|
-
|
|
|
|
-.. _class_@GlobalScope_constant_PROPERTY_USAGE_EDITOR_HELPER:
|
|
|
|
-
|
|
|
|
.. _class_@GlobalScope_constant_PROPERTY_USAGE_CHECKABLE:
|
|
.. _class_@GlobalScope_constant_PROPERTY_USAGE_CHECKABLE:
|
|
|
|
|
|
.. _class_@GlobalScope_constant_PROPERTY_USAGE_CHECKED:
|
|
.. _class_@GlobalScope_constant_PROPERTY_USAGE_CHECKED:
|
|
@@ -2292,6 +2296,8 @@ Unlike :ref:`PROPERTY_HINT_ENUM<class_@GlobalScope_constant_PROPERTY_HINT_ENUM>`
|
|
|
|
|
|
.. _class_@GlobalScope_constant_PROPERTY_USAGE_SUBGROUP:
|
|
.. _class_@GlobalScope_constant_PROPERTY_USAGE_SUBGROUP:
|
|
|
|
|
|
|
|
+.. _class_@GlobalScope_constant_PROPERTY_USAGE_CLASS_IS_BITFIELD:
|
|
|
|
+
|
|
.. _class_@GlobalScope_constant_PROPERTY_USAGE_NO_INSTANCE_STATE:
|
|
.. _class_@GlobalScope_constant_PROPERTY_USAGE_NO_INSTANCE_STATE:
|
|
|
|
|
|
.. _class_@GlobalScope_constant_PROPERTY_USAGE_RESTART_IF_CHANGED:
|
|
.. _class_@GlobalScope_constant_PROPERTY_USAGE_RESTART_IF_CHANGED:
|
|
@@ -2340,69 +2346,67 @@ enum **PropertyUsageFlags**:
|
|
|
|
|
|
- **PROPERTY_USAGE_NONE** = **0**
|
|
- **PROPERTY_USAGE_NONE** = **0**
|
|
|
|
|
|
-- **PROPERTY_USAGE_STORAGE** = **1** --- The property is serialized and saved in the scene file (default).
|
|
|
|
-
|
|
|
|
-- **PROPERTY_USAGE_EDITOR** = **2** --- The property is shown in the editor inspector (default).
|
|
|
|
|
|
+- **PROPERTY_USAGE_STORAGE** = **2** --- The property is serialized and saved in the scene file (default).
|
|
|
|
|
|
-- **PROPERTY_USAGE_NETWORK** = **4** --- Deprecated usage flag, unused.
|
|
|
|
|
|
+- **PROPERTY_USAGE_EDITOR** = **4** --- The property is shown in the editor inspector (default).
|
|
|
|
|
|
-- **PROPERTY_USAGE_EDITOR_HELPER** = **8** --- Deprecated usage flag, unused.
|
|
|
|
|
|
+- **PROPERTY_USAGE_CHECKABLE** = **8** --- The property can be checked in the editor inspector.
|
|
|
|
|
|
-- **PROPERTY_USAGE_CHECKABLE** = **16** --- The property can be checked in the editor inspector.
|
|
|
|
|
|
+- **PROPERTY_USAGE_CHECKED** = **16** --- The property is checked in the editor inspector.
|
|
|
|
|
|
-- **PROPERTY_USAGE_CHECKED** = **32** --- The property is checked in the editor inspector.
|
|
|
|
|
|
+- **PROPERTY_USAGE_INTERNATIONALIZED** = **32** --- The property is a translatable string.
|
|
|
|
|
|
-- **PROPERTY_USAGE_INTERNATIONALIZED** = **64** --- The property is a translatable string.
|
|
|
|
|
|
+- **PROPERTY_USAGE_GROUP** = **64** --- Used to group properties together in the editor. See :ref:`EditorInspector<class_EditorInspector>`.
|
|
|
|
|
|
-- **PROPERTY_USAGE_GROUP** = **128** --- Used to group properties together in the editor. See :ref:`EditorInspector<class_EditorInspector>`.
|
|
|
|
|
|
+- **PROPERTY_USAGE_CATEGORY** = **128** --- Used to categorize properties together in the editor.
|
|
|
|
|
|
-- **PROPERTY_USAGE_CATEGORY** = **256** --- Used to categorize properties together in the editor.
|
|
|
|
|
|
+- **PROPERTY_USAGE_SUBGROUP** = **256** --- Used to group properties together in the editor in a subgroup (under a group). See :ref:`EditorInspector<class_EditorInspector>`.
|
|
|
|
|
|
-- **PROPERTY_USAGE_SUBGROUP** = **512** --- Used to group properties together in the editor in a subgroup (under a group). See :ref:`EditorInspector<class_EditorInspector>`.
|
|
|
|
|
|
+- **PROPERTY_USAGE_CLASS_IS_BITFIELD** = **512**
|
|
|
|
|
|
-- **PROPERTY_USAGE_NO_INSTANCE_STATE** = **2048** --- The property does not save its state in :ref:`PackedScene<class_PackedScene>`.
|
|
|
|
|
|
+- **PROPERTY_USAGE_NO_INSTANCE_STATE** = **1024** --- The property does not save its state in :ref:`PackedScene<class_PackedScene>`.
|
|
|
|
|
|
-- **PROPERTY_USAGE_RESTART_IF_CHANGED** = **4096** --- Editing the property prompts the user for restarting the editor.
|
|
|
|
|
|
+- **PROPERTY_USAGE_RESTART_IF_CHANGED** = **2048** --- Editing the property prompts the user for restarting the editor.
|
|
|
|
|
|
-- **PROPERTY_USAGE_SCRIPT_VARIABLE** = **8192** --- The property is a script variable which should be serialized and saved in the scene file.
|
|
|
|
|
|
+- **PROPERTY_USAGE_SCRIPT_VARIABLE** = **4096** --- The property is a script variable which should be serialized and saved in the scene file.
|
|
|
|
|
|
-- **PROPERTY_USAGE_STORE_IF_NULL** = **16384**
|
|
|
|
|
|
+- **PROPERTY_USAGE_STORE_IF_NULL** = **8192**
|
|
|
|
|
|
-- **PROPERTY_USAGE_ANIMATE_AS_TRIGGER** = **32768**
|
|
|
|
|
|
+- **PROPERTY_USAGE_ANIMATE_AS_TRIGGER** = **16384**
|
|
|
|
|
|
-- **PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED** = **65536**
|
|
|
|
|
|
+- **PROPERTY_USAGE_UPDATE_ALL_IF_MODIFIED** = **32768**
|
|
|
|
|
|
-- **PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE** = **131072**
|
|
|
|
|
|
+- **PROPERTY_USAGE_SCRIPT_DEFAULT_VALUE** = **65536**
|
|
|
|
|
|
-- **PROPERTY_USAGE_CLASS_IS_ENUM** = **262144**
|
|
|
|
|
|
+- **PROPERTY_USAGE_CLASS_IS_ENUM** = **131072**
|
|
|
|
|
|
-- **PROPERTY_USAGE_NIL_IS_VARIANT** = **524288**
|
|
|
|
|
|
+- **PROPERTY_USAGE_NIL_IS_VARIANT** = **262144**
|
|
|
|
|
|
-- **PROPERTY_USAGE_INTERNAL** = **1048576**
|
|
|
|
|
|
+- **PROPERTY_USAGE_INTERNAL** = **524288**
|
|
|
|
|
|
-- **PROPERTY_USAGE_DO_NOT_SHARE_ON_DUPLICATE** = **2097152**
|
|
|
|
|
|
+- **PROPERTY_USAGE_DO_NOT_SHARE_ON_DUPLICATE** = **1048576**
|
|
|
|
|
|
-- **PROPERTY_USAGE_HIGH_END_GFX** = **4194304**
|
|
|
|
|
|
+- **PROPERTY_USAGE_HIGH_END_GFX** = **2097152**
|
|
|
|
|
|
-- **PROPERTY_USAGE_NODE_PATH_FROM_SCENE_ROOT** = **8388608**
|
|
|
|
|
|
+- **PROPERTY_USAGE_NODE_PATH_FROM_SCENE_ROOT** = **4194304**
|
|
|
|
|
|
-- **PROPERTY_USAGE_RESOURCE_NOT_PERSISTENT** = **16777216**
|
|
|
|
|
|
+- **PROPERTY_USAGE_RESOURCE_NOT_PERSISTENT** = **8388608**
|
|
|
|
|
|
-- **PROPERTY_USAGE_KEYING_INCREMENTS** = **33554432**
|
|
|
|
|
|
+- **PROPERTY_USAGE_KEYING_INCREMENTS** = **16777216**
|
|
|
|
|
|
-- **PROPERTY_USAGE_DEFERRED_SET_RESOURCE** = **67108864**
|
|
|
|
|
|
+- **PROPERTY_USAGE_DEFERRED_SET_RESOURCE** = **33554432**
|
|
|
|
|
|
-- **PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT** = **134217728**
|
|
|
|
|
|
+- **PROPERTY_USAGE_EDITOR_INSTANTIATE_OBJECT** = **67108864**
|
|
|
|
|
|
-- **PROPERTY_USAGE_EDITOR_BASIC_SETTING** = **268435456**
|
|
|
|
|
|
+- **PROPERTY_USAGE_EDITOR_BASIC_SETTING** = **134217728**
|
|
|
|
|
|
-- **PROPERTY_USAGE_ARRAY** = **1073741824**
|
|
|
|
|
|
+- **PROPERTY_USAGE_ARRAY** = **536870912**
|
|
|
|
|
|
-- **PROPERTY_USAGE_DEFAULT** = **7** --- Default usage (storage, editor and network).
|
|
|
|
|
|
+- **PROPERTY_USAGE_DEFAULT** = **6** --- Default usage (storage, editor and network).
|
|
|
|
|
|
-- **PROPERTY_USAGE_DEFAULT_INTL** = **71** --- Default usage for translatable strings (storage, editor, network and internationalized).
|
|
|
|
|
|
+- **PROPERTY_USAGE_DEFAULT_INTL** = **38** --- Default usage for translatable strings (storage, editor, network and internationalized).
|
|
|
|
|
|
-- **PROPERTY_USAGE_NO_EDITOR** = **5** --- Default usage but without showing the property in the editor (storage, network).
|
|
|
|
|
|
+- **PROPERTY_USAGE_NO_EDITOR** = **2** --- Default usage but without showing the property in the editor (storage, network).
|
|
|
|
|
|
----
|
|
----
|
|
|
|
|
|
@@ -2412,16 +2416,10 @@ enum **PropertyUsageFlags**:
|
|
|
|
|
|
.. _class_@GlobalScope_constant_METHOD_FLAG_EDITOR:
|
|
.. _class_@GlobalScope_constant_METHOD_FLAG_EDITOR:
|
|
|
|
|
|
-.. _class_@GlobalScope_constant_METHOD_FLAG_NOSCRIPT:
|
|
|
|
-
|
|
|
|
.. _class_@GlobalScope_constant_METHOD_FLAG_CONST:
|
|
.. _class_@GlobalScope_constant_METHOD_FLAG_CONST:
|
|
|
|
|
|
-.. _class_@GlobalScope_constant_METHOD_FLAG_REVERSE:
|
|
|
|
-
|
|
|
|
.. _class_@GlobalScope_constant_METHOD_FLAG_VIRTUAL:
|
|
.. _class_@GlobalScope_constant_METHOD_FLAG_VIRTUAL:
|
|
|
|
|
|
-.. _class_@GlobalScope_constant_METHOD_FLAG_FROM_SCRIPT:
|
|
|
|
-
|
|
|
|
.. _class_@GlobalScope_constant_METHOD_FLAG_VARARG:
|
|
.. _class_@GlobalScope_constant_METHOD_FLAG_VARARG:
|
|
|
|
|
|
.. _class_@GlobalScope_constant_METHOD_FLAG_STATIC:
|
|
.. _class_@GlobalScope_constant_METHOD_FLAG_STATIC:
|
|
@@ -2436,21 +2434,15 @@ enum **MethodFlags**:
|
|
|
|
|
|
- **METHOD_FLAG_EDITOR** = **2** --- Flag for an editor method.
|
|
- **METHOD_FLAG_EDITOR** = **2** --- Flag for an editor method.
|
|
|
|
|
|
-- **METHOD_FLAG_NOSCRIPT** = **4** --- Deprecated method flag, unused.
|
|
|
|
|
|
+- **METHOD_FLAG_CONST** = **4** --- Flag for a constant method.
|
|
|
|
|
|
-- **METHOD_FLAG_CONST** = **8** --- Flag for a constant method.
|
|
|
|
|
|
+- **METHOD_FLAG_VIRTUAL** = **8** --- Flag for a virtual method.
|
|
|
|
|
|
-- **METHOD_FLAG_REVERSE** = **16** --- Deprecated method flag, unused.
|
|
|
|
|
|
+- **METHOD_FLAG_VARARG** = **16**
|
|
|
|
|
|
-- **METHOD_FLAG_VIRTUAL** = **32** --- Flag for a virtual method.
|
|
|
|
|
|
+- **METHOD_FLAG_STATIC** = **32**
|
|
|
|
|
|
-- **METHOD_FLAG_FROM_SCRIPT** = **64** --- Deprecated method flag, unused.
|
|
|
|
-
|
|
|
|
-- **METHOD_FLAG_VARARG** = **128**
|
|
|
|
-
|
|
|
|
-- **METHOD_FLAG_STATIC** = **256**
|
|
|
|
-
|
|
|
|
-- **METHOD_FLAG_OBJECT_CORE** = **512** --- Used internally. Allows to not dump core virtuals such as ``_notification`` to the JSON API.
|
|
|
|
|
|
+- **METHOD_FLAG_OBJECT_CORE** = **64** --- Used internally. Allows to not dump core virtuals such as ``_notification`` to the JSON API.
|
|
|
|
|
|
- **METHOD_FLAGS_DEFAULT** = **1** --- Default method flags.
|
|
- **METHOD_FLAGS_DEFAULT** = **1** --- Default method flags.
|
|
|
|
|
|
@@ -2518,6 +2510,10 @@ enum **TransferMode**:
|
|
|
|
|
|
.. _class_@GlobalScope_constant_TYPE_TRANSFORM2D:
|
|
.. _class_@GlobalScope_constant_TYPE_TRANSFORM2D:
|
|
|
|
|
|
|
|
+.. _class_@GlobalScope_constant_TYPE_VECTOR4:
|
|
|
|
+
|
|
|
|
+.. _class_@GlobalScope_constant_TYPE_VECTOR4I:
|
|
|
|
+
|
|
.. _class_@GlobalScope_constant_TYPE_PLANE:
|
|
.. _class_@GlobalScope_constant_TYPE_PLANE:
|
|
|
|
|
|
.. _class_@GlobalScope_constant_TYPE_QUATERNION:
|
|
.. _class_@GlobalScope_constant_TYPE_QUATERNION:
|
|
@@ -2528,6 +2524,8 @@ enum **TransferMode**:
|
|
|
|
|
|
.. _class_@GlobalScope_constant_TYPE_TRANSFORM3D:
|
|
.. _class_@GlobalScope_constant_TYPE_TRANSFORM3D:
|
|
|
|
|
|
|
|
+.. _class_@GlobalScope_constant_TYPE_PROJECTION:
|
|
|
|
+
|
|
.. _class_@GlobalScope_constant_TYPE_COLOR:
|
|
.. _class_@GlobalScope_constant_TYPE_COLOR:
|
|
|
|
|
|
.. _class_@GlobalScope_constant_TYPE_STRING_NAME:
|
|
.. _class_@GlobalScope_constant_TYPE_STRING_NAME:
|
|
@@ -2592,53 +2590,59 @@ enum **Variant.Type**:
|
|
|
|
|
|
- **TYPE_TRANSFORM2D** = **11** --- Variable is of type :ref:`Transform2D<class_Transform2D>`.
|
|
- **TYPE_TRANSFORM2D** = **11** --- Variable is of type :ref:`Transform2D<class_Transform2D>`.
|
|
|
|
|
|
-- **TYPE_PLANE** = **12** --- Variable is of type :ref:`Plane<class_Plane>`.
|
|
|
|
|
|
+- **TYPE_VECTOR4** = **12**
|
|
|
|
+
|
|
|
|
+- **TYPE_VECTOR4I** = **13**
|
|
|
|
|
|
-- **TYPE_QUATERNION** = **13** --- Variable is of type :ref:`Quaternion<class_Quaternion>`.
|
|
|
|
|
|
+- **TYPE_PLANE** = **14** --- Variable is of type :ref:`Plane<class_Plane>`.
|
|
|
|
|
|
-- **TYPE_AABB** = **14** --- Variable is of type :ref:`AABB<class_AABB>`.
|
|
|
|
|
|
+- **TYPE_QUATERNION** = **15** --- Variable is of type :ref:`Quaternion<class_Quaternion>`.
|
|
|
|
|
|
-- **TYPE_BASIS** = **15** --- Variable is of type :ref:`Basis<class_Basis>`.
|
|
|
|
|
|
+- **TYPE_AABB** = **16** --- Variable is of type :ref:`AABB<class_AABB>`.
|
|
|
|
|
|
-- **TYPE_TRANSFORM3D** = **16** --- Variable is of type :ref:`Transform3D<class_Transform3D>`.
|
|
|
|
|
|
+- **TYPE_BASIS** = **17** --- Variable is of type :ref:`Basis<class_Basis>`.
|
|
|
|
|
|
-- **TYPE_COLOR** = **17** --- Variable is of type :ref:`Color<class_Color>`.
|
|
|
|
|
|
+- **TYPE_TRANSFORM3D** = **18** --- Variable is of type :ref:`Transform3D<class_Transform3D>`.
|
|
|
|
|
|
-- **TYPE_STRING_NAME** = **18** --- Variable is of type :ref:`StringName<class_StringName>`.
|
|
|
|
|
|
+- **TYPE_PROJECTION** = **19**
|
|
|
|
|
|
-- **TYPE_NODE_PATH** = **19** --- Variable is of type :ref:`NodePath<class_NodePath>`.
|
|
|
|
|
|
+- **TYPE_COLOR** = **20** --- Variable is of type :ref:`Color<class_Color>`.
|
|
|
|
|
|
-- **TYPE_RID** = **20** --- Variable is of type :ref:`RID<class_RID>`.
|
|
|
|
|
|
+- **TYPE_STRING_NAME** = **21** --- Variable is of type :ref:`StringName<class_StringName>`.
|
|
|
|
|
|
-- **TYPE_OBJECT** = **21** --- Variable is of type :ref:`Object<class_Object>`.
|
|
|
|
|
|
+- **TYPE_NODE_PATH** = **22** --- Variable is of type :ref:`NodePath<class_NodePath>`.
|
|
|
|
|
|
-- **TYPE_CALLABLE** = **22** --- Variable is of type :ref:`Callable<class_Callable>`.
|
|
|
|
|
|
+- **TYPE_RID** = **23** --- Variable is of type :ref:`RID<class_RID>`.
|
|
|
|
|
|
-- **TYPE_SIGNAL** = **23** --- Variable is of type :ref:`Signal<class_Signal>`.
|
|
|
|
|
|
+- **TYPE_OBJECT** = **24** --- Variable is of type :ref:`Object<class_Object>`.
|
|
|
|
|
|
-- **TYPE_DICTIONARY** = **24** --- Variable is of type :ref:`Dictionary<class_Dictionary>`.
|
|
|
|
|
|
+- **TYPE_CALLABLE** = **25** --- Variable is of type :ref:`Callable<class_Callable>`.
|
|
|
|
|
|
-- **TYPE_ARRAY** = **25** --- Variable is of type :ref:`Array<class_Array>`.
|
|
|
|
|
|
+- **TYPE_SIGNAL** = **26** --- Variable is of type :ref:`Signal<class_Signal>`.
|
|
|
|
|
|
-- **TYPE_PACKED_BYTE_ARRAY** = **26** --- Variable is of type :ref:`PackedByteArray<class_PackedByteArray>`.
|
|
|
|
|
|
+- **TYPE_DICTIONARY** = **27** --- Variable is of type :ref:`Dictionary<class_Dictionary>`.
|
|
|
|
|
|
-- **TYPE_PACKED_INT32_ARRAY** = **27** --- Variable is of type :ref:`PackedInt32Array<class_PackedInt32Array>`.
|
|
|
|
|
|
+- **TYPE_ARRAY** = **28** --- Variable is of type :ref:`Array<class_Array>`.
|
|
|
|
|
|
-- **TYPE_PACKED_INT64_ARRAY** = **28** --- Variable is of type :ref:`PackedInt64Array<class_PackedInt64Array>`.
|
|
|
|
|
|
+- **TYPE_PACKED_BYTE_ARRAY** = **29** --- Variable is of type :ref:`PackedByteArray<class_PackedByteArray>`.
|
|
|
|
|
|
-- **TYPE_PACKED_FLOAT32_ARRAY** = **29** --- Variable is of type :ref:`PackedFloat32Array<class_PackedFloat32Array>`.
|
|
|
|
|
|
+- **TYPE_PACKED_INT32_ARRAY** = **30** --- Variable is of type :ref:`PackedInt32Array<class_PackedInt32Array>`.
|
|
|
|
|
|
-- **TYPE_PACKED_FLOAT64_ARRAY** = **30** --- Variable is of type :ref:`PackedFloat64Array<class_PackedFloat64Array>`.
|
|
|
|
|
|
+- **TYPE_PACKED_INT64_ARRAY** = **31** --- Variable is of type :ref:`PackedInt64Array<class_PackedInt64Array>`.
|
|
|
|
|
|
-- **TYPE_PACKED_STRING_ARRAY** = **31** --- Variable is of type :ref:`PackedStringArray<class_PackedStringArray>`.
|
|
|
|
|
|
+- **TYPE_PACKED_FLOAT32_ARRAY** = **32** --- Variable is of type :ref:`PackedFloat32Array<class_PackedFloat32Array>`.
|
|
|
|
|
|
-- **TYPE_PACKED_VECTOR2_ARRAY** = **32** --- Variable is of type :ref:`PackedVector2Array<class_PackedVector2Array>`.
|
|
|
|
|
|
+- **TYPE_PACKED_FLOAT64_ARRAY** = **33** --- Variable is of type :ref:`PackedFloat64Array<class_PackedFloat64Array>`.
|
|
|
|
|
|
-- **TYPE_PACKED_VECTOR3_ARRAY** = **33** --- Variable is of type :ref:`PackedVector3Array<class_PackedVector3Array>`.
|
|
|
|
|
|
+- **TYPE_PACKED_STRING_ARRAY** = **34** --- Variable is of type :ref:`PackedStringArray<class_PackedStringArray>`.
|
|
|
|
|
|
-- **TYPE_PACKED_COLOR_ARRAY** = **34** --- Variable is of type :ref:`PackedColorArray<class_PackedColorArray>`.
|
|
|
|
|
|
+- **TYPE_PACKED_VECTOR2_ARRAY** = **35** --- Variable is of type :ref:`PackedVector2Array<class_PackedVector2Array>`.
|
|
|
|
|
|
-- **TYPE_MAX** = **35** --- Represents the size of the :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` enum.
|
|
|
|
|
|
+- **TYPE_PACKED_VECTOR3_ARRAY** = **36** --- Variable is of type :ref:`PackedVector3Array<class_PackedVector3Array>`.
|
|
|
|
+
|
|
|
|
+- **TYPE_PACKED_COLOR_ARRAY** = **37** --- Variable is of type :ref:`PackedColorArray<class_PackedColorArray>`.
|
|
|
|
+
|
|
|
|
+- **TYPE_MAX** = **38** --- Represents the size of the :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` enum.
|
|
|
|
|
|
----
|
|
----
|
|
|
|
|
|
@@ -3009,6 +3013,12 @@ The :ref:`VisualScriptCustomNodes<class_VisualScriptCustomNodes>` singleton.
|
|
|
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
+.. _class_@GlobalScope_property_WorkerThreadPool:
|
|
|
|
+
|
|
|
|
+- :ref:`WorkerThreadPool<class_WorkerThreadPool>` **WorkerThreadPool**
|
|
|
|
+
|
|
|
|
+----
|
|
|
|
+
|
|
.. _class_@GlobalScope_property_XRServer:
|
|
.. _class_@GlobalScope_property_XRServer:
|
|
|
|
|
|
- :ref:`XRServer<class_XRServer>` **XRServer**
|
|
- :ref:`XRServer<class_XRServer>` **XRServer**
|
|
@@ -3128,6 +3138,14 @@ Important note: The Y coordinate comes first, by convention.
|
|
|
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
+.. _class_@GlobalScope_method_bezier_interpolate:
|
|
|
|
+
|
|
|
|
+- :ref:`float<class_float>` **bezier_interpolate** **(** :ref:`float<class_float>` start, :ref:`float<class_float>` control_1, :ref:`float<class_float>` control_2, :ref:`float<class_float>` end, :ref:`float<class_float>` t **)**
|
|
|
|
+
|
|
|
|
+Returns the point at the given ``t`` on a one-dimnesional `Bezier curve <https://en.wikipedia.org/wiki/B%C3%A9zier_curve>`__ defined by the given ``control_1``, ``control_2``, and ``end`` points.
|
|
|
|
+
|
|
|
|
+----
|
|
|
|
+
|
|
.. _class_@GlobalScope_method_bytes2var:
|
|
.. _class_@GlobalScope_method_bytes2var:
|
|
|
|
|
|
- :ref:`Variant<class_Variant>` **bytes2var** **(** :ref:`PackedByteArray<class_PackedByteArray>` bytes **)**
|
|
- :ref:`Variant<class_Variant>` **bytes2var** **(** :ref:`PackedByteArray<class_PackedByteArray>` bytes **)**
|
|
@@ -3743,6 +3761,22 @@ Converts one or more arguments of any type to string in the best way possible an
|
|
|
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
+.. _class_@GlobalScope_method_print_rich:
|
|
|
|
+
|
|
|
|
+- void **print_rich** **(** ... **)** |vararg|
|
|
|
|
+
|
|
|
|
+Converts one or more arguments of any type to string in the best way possible and prints them to the console. The following BBCode tags are supported: b, i, u, s, indent, code, url, center, right, color, bgcolor, fgcolor. Color tags only support named colors such as ``red``, *not* hexadecimal color codes. Unsupported tags will be left as-is in standard output.
|
|
|
|
+
|
|
|
|
+When printing to standard output, the supported subset of BBCode is converted to ANSI escape codes for the terminal emulator to display. Displaying ANSI escape codes is currently only supported on Linux and macOS. Support for ANSI escape codes may vary across terminal emulators, especially for italic and strikethrough.
|
|
|
|
+
|
|
|
|
+::
|
|
|
|
+
|
|
|
|
+ print_rich("[code][b]Hello world![/b]``") # Prints out: **Hello world!**\
|
|
|
|
+
|
|
|
|
+\ **Note:** Consider using :ref:`push_error<class_@GlobalScope_method_push_error>` and :ref:`push_warning<class_@GlobalScope_method_push_warning>` to print error and warning messages instead of :ref:`print<class_@GlobalScope_method_print>` or :ref:`print_rich<class_@GlobalScope_method_print_rich>`. This distinguishes them from print messages used for debugging purposes, while also displaying a stack trace when an error or warning is printed.
|
|
|
|
+
|
|
|
|
+----
|
|
|
|
+
|
|
.. _class_@GlobalScope_method_print_verbose:
|
|
.. _class_@GlobalScope_method_print_verbose:
|
|
|
|
|
|
- void **print_verbose** **(** ... **)** |vararg|
|
|
- void **print_verbose** **(** ... **)** |vararg|
|
|
@@ -4228,6 +4262,29 @@ A weak reference to an object is not enough to keep the object alive: when the o
|
|
|
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
+.. _class_@GlobalScope_method_wrap:
|
|
|
|
+
|
|
|
|
+- :ref:`Variant<class_Variant>` **wrap** **(** :ref:`Variant<class_Variant>` value, :ref:`Variant<class_Variant>` min, :ref:`Variant<class_Variant>` max **)**
|
|
|
|
+
|
|
|
|
+Wraps the :ref:`Variant<class_Variant>` ``value`` between ``min`` and ``max``.
|
|
|
|
+
|
|
|
|
+Usable for creating loop-alike behavior or infinite surfaces.
|
|
|
|
+
|
|
|
|
+Variant types :ref:`int<class_int>` and :ref:`float<class_float>` (real) are supported. If any of the argument is :ref:`float<class_float>` the result will be :ref:`float<class_float>`, otherwise it is :ref:`int<class_int>`.
|
|
|
|
+
|
|
|
|
+::
|
|
|
|
+
|
|
|
|
+ var a = wrap(4, 5, 10)
|
|
|
|
+ # a is 9 (int)
|
|
|
|
+
|
|
|
|
+ var a = wrap(7, 5, 10)
|
|
|
|
+ # a is 7 (int)
|
|
|
|
+
|
|
|
|
+ var a = wrap(10.5, 5, 10)
|
|
|
|
+ # a is 5.5 (float)
|
|
|
|
+
|
|
|
|
+----
|
|
|
|
+
|
|
.. _class_@GlobalScope_method_wrapf:
|
|
.. _class_@GlobalScope_method_wrapf:
|
|
|
|
|
|
- :ref:`float<class_float>` **wrapf** **(** :ref:`float<class_float>` value, :ref:`float<class_float>` min, :ref:`float<class_float>` max **)**
|
|
- :ref:`float<class_float>` **wrapf** **(** :ref:`float<class_float>` value, :ref:`float<class_float>` min, :ref:`float<class_float>` max **)**
|