Godot String Format

[Solved] Godot String Format | Typescript - Code Explorer | yomemimo.com
Question : gdScript string format

Answered by : kshitij

var s1 : String = "godot"
var s2 : String = "%s game engine" %[s1]
print(s2) # print -> godot game engine

Source : | Last Update : Thu, 03 Sep 20

Question : godot string format

Answered by : stopnot

var format_string = "%s was reluctant to learn %s, but now he enjoys it."
var actual_string = format_string % ["Estragon", "GDScript"]

Source : | Last Update : Wed, 21 Apr 21

Question : godot format string

Answered by : you

var name = "Alice"
var age = 25
var message = "My name is %s and I am %d years old." % [name, age]

Source : | Last Update : Tue, 19 Sep 23

Answers related to godot string format

Code Explorer Popular Question For Typescript