Skip to content

Commit 97c0af6

Browse files
authored
Merge pull request godotengine#8082 from bteixeira/patch-2
Update gdscript_format_string.rst
2 parents 6aa52a1 + ebb36dc commit 97c0af6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tutorials/scripting/gdscript/gdscript_format_string.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ specifier. Apart from ``s``, these require certain types of parameters.
122122
+-------+---------------------------------------------------------------------+
123123
| ``f`` | A **decimal real** number. Expects an integral or real number. |
124124
+-------+---------------------------------------------------------------------+
125+
| ``v`` | A **vector**. Expects any float or int-based vector object ( |
126+
| | ``Vector2``, ``Vector3``, ``Vector4``, ``Vector2i``, ``Vector3i`` or|
127+
| | ``Vector4i``). Will display the vector coordinates in parentheses, |
128+
| | formatting each coordinate as if it was an ``%f``, and using the |
129+
| | same modifiers. |
130+
+-------+---------------------------------------------------------------------+
125131

126132

127133
Placeholder modifiers
@@ -138,8 +144,8 @@ conditions.
138144
| | The leading ``0`` is ignored if ``-`` is present. |
139145
| | When used after ``.``, see ``.``. |
140146
+---------+-------------------------------------------------------------------+
141-
| ``.`` | Before ``f``, set **precision** to 0 decimal places. Can be |
142-
| | followed up with numbers to change. Padded with zeroes. |
147+
| ``.`` | Before ``f`` or ``v``, set **precision** to 0 decimal places. Can |
148+
| | be followed up with numbers to change. Padded with zeroes. |
143149
+---------+-------------------------------------------------------------------+
144150
| ``-`` | **Pad to the right** rather than the left. |
145151
+---------+-------------------------------------------------------------------+

0 commit comments

Comments
 (0)