how set_setting in ProjectSettings?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lalel345

this does not work

func _ready():
	ProjectSettings.set_setting("display/window/size/fullscreen",true)
:bust_in_silhouette: Reply From: Mindscore

You can use OS.window_fullscreen = true to turn on Fullscreen.

but then how and when I use ProjectSettings?

lalel345 | 2020-12-17 14:28

AFAIK ProjectSettings aren’t intended to be changed at runtime of the game.

Instead you can use it in a tool script (runs in the editor not the game), for example if you want to automate updating the ProjectSettings.

Mindscore | 2020-12-17 14:37