mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
Add a note about GDScript format strings in C++ (#10061)
This commit is contained in:
@@ -285,3 +285,6 @@ Combining both the ``String.format`` method and the ``%`` operator could be usef
|
||||
+---------------------------------------------------------------------------+-------------------+
|
||||
| ``"Hi, {0} v{version}".format({0:"Godette", "version":"%0.2f" % 3.114})`` | Hi, Godette v3.11 |
|
||||
+---------------------------------------------------------------------------+-------------------+
|
||||
|
||||
In Godot's C++ code, GDScript format strings can be accessed using the
|
||||
``vformat`` helper function in the :ref:`Variant<class_Variant>` header.
|
||||
|
||||
Reference in New Issue
Block a user