Skip to content

Commit 69116a8

Browse files
authored
Merge pull request godotengine#8144 from raulsntos/dotnet/differences4.2
Update C# differences for 4.2
2 parents 228c10e + 4266830 commit 69116a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tutorials/scripting/c_sharp/c_sharp_differences.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ absf Mathf.Abs
113113
absi Mathf.Abs
114114
acos Mathf.Acos
115115
acosh Mathf.Acosh
116+
angle_difference Mathf.AngleDifference
116117
asin Mathf.Asin
117118
asinh Mathf.Asinh
118119
atan Mathf.Atan
@@ -191,6 +192,7 @@ randomize GD.Randomize
191192
remap Mathf.Remap
192193
rid_allocate_id N/A
193194
rid_from_int64 N/A
195+
rotate_toward Mathf.RotateToward
194196
round Mathf.Round
195197
roundf Mathf.Round
196198
roundi Mathf.RoundToInt
@@ -210,6 +212,8 @@ str Use `$ string interpolation`_
210212
str_to_var GD.StrToVar
211213
tan Mathf.Tan
212214
tanh Mathf.Tanh
215+
type_convert Variant.As<T> or GD.Convert
216+
type_string Variant.Type.ToString
213217
typeof Variant.VariantType
214218
var_to_bytes GD.VarToBytes
215219
var_to_bytes_with_objects GD.VarToBytesWithObjects
@@ -433,6 +437,7 @@ path_join StringExtensions.PathJoin
433437
repeat Use `string constructor`_ or a `StringBuilder`_
434438
replace `string.Replace`_ or `RegEx`_
435439
replacen StringExtensions.ReplaceN (Consider using `string.Replace`_ or `RegEx`_)
440+
reverse N/A
436441
rfind StringExtensions.RFind (Consider using `string.LastIndexOf`_ or `string.LastIndexOfAny`_)
437442
rfindn StringExtensions.RFindN (Consider using `string.LastIndexOf`_ or `string.LastIndexOfAny`_)
438443
right StringExtensions.Right (Consider using `string.Substring`_ or `string.AsSpan`_)

0 commit comments

Comments
 (0)