Skip to content

Commit a74060b

Browse files
authored
Add a note about GDScript format strings in C++ (#10061)
1 parent 7cd9621 commit a74060b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tutorials/scripting/gdscript/gdscript_format_string.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,3 +285,6 @@ Combining both the ``String.format`` method and the ``%`` operator could be usef
285285
+---------------------------------------------------------------------------+-------------------+
286286
| ``"Hi, {0} v{version}".format({0:"Godette", "version":"%0.2f" % 3.114})`` | Hi, Godette v3.11 |
287287
+---------------------------------------------------------------------------+-------------------+
288+
289+
In Godot's C++ code, GDScript format strings can be accessed using the
290+
``vformat`` helper function in the :ref:`Variant<class_Variant>` header.

0 commit comments

Comments
 (0)