How to move an GameObject between scenes (with the MoveGameObjectToScene-function)?

Hello!

I am unsuccessfully trying to find a way how to reference the second parameter of the MoveGameObjectToScene-function, namely SceneManagement.Scene scene.

Have someone an idea how that function is used?

You can do:

public Scene toScene;

then assign it in the inspector
Edit:
you have to put a using UnityEngine.SceneManager; in the file

Does not work for me.

After using

using UnityEngine.SceneManagement;

public class ForwardButton : MonoBehaviour {

    public Scene toScene;

}

the toScene is not visible in the editor. Probably because it is a struct, not an C# object or a Unity GameObject.

Ok, 5 mins of google:
SceneManager.GetSceneAt(id);
Ooor:
yourGameObject.scene;