Change Main Scene with GDScript

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

Is it possible to change the main scene with GDScript?

I’ve try this:



ProjectSettings.set_setting("application/run/main_scene", "res://scene.tscn")

but it’s doesn’t work.

:bust_in_silhouette: Reply From: spaceyjase

Hi. Please read the question carefully. I’m asking for changing the main scene, not just the current scene.

manushifva | 2021-11-30 04:59