浏览代码

Add a note about GDScript format strings in C++ (#10061)

Aaron Franke 9 月之前
父节点
当前提交
a04b7d9780
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tutorials/scripting/gdscript/gdscript_format_string.rst

+ 3 - 0
tutorials/scripting/gdscript/gdscript_format_string.rst

@@ -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.