Function SceneTree.changeSceneTo
Changes the running scene to a new instance of the given PackedScene.
Returns constant OK on success or constant ERR_CANT_CREATE if the scene cannot be instantiated.
Changes the running scene to a new instance of the given PackedScene.
Returns constant OK on success or constant ERR_CANT_CREATE if the scene cannot be instantiated.