Valks-Games / sankari

A open source 2D platformer being made in Godot 4 beta C#
MIT License
62 stars 15 forks source link

[Godot 4] How do you set the game window title? #131

Closed valkyrienyanko closed 2 years ago

valkyrienyanko commented 2 years ago

ℹ️ This issue is for the godot4 branch

In Godot 3.x it was OS.SetWindowTitle(string title); but in Godot 4 this is no longer the case.

Link to Godot Discord to ask this question

policiu commented 2 years ago

Os was split into OS and DisplayServer: https://github.com/godotengine/godot/pull/37317

DisplayServer.WindowSetTitle("I'm a title!");