Skip to content

Instantly share code, notes, and snippets.

@ParadoxV5
Created July 9, 2023 04:11
Show Gist options
  • Save ParadoxV5/9bd4fd5334ebf477b7eab9588cf04c7e to your computer and use it in GitHub Desktop.
Save ParadoxV5/9bd4fd5334ebf477b7eab9588cf04c7e to your computer and use it in GitHub Desktop.

… because Google gave me no results when this curiosity came to me.

Testing method: I generated a .gd script using Ruby’s Array#permutation and Array#product. Then I let Godot 4.1.0’s code editor (statically?) check for errors. I have not run any of the GDScript.


  • First – Between Variant and anything (i.e. dynamic typing support)
  • Between int, float and bool (Between float and bool? Interesting.)
  • Between String and StringName (as expected)
  • Between String and NodePath (ditto)
  • Between Rect2 and Rect2i; same for the Vectors
  • Between Array and any PackedXXXArray (not even the element type matters…)
  • Between Transform2D (2×3 matrix) and Transform3D (3×4 matrix)
  • Between Transform3D (3×4 matrix) and Projection (4×4)
  • Between Transform3D (3×4), Basis (3×3) and Quaternion (1×4)
  • From int or String to Color but not Color to one of those (Implicitly convert from a color name? Pog.)
  • From Object to RID but not RID to Object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment