move gameobject to scene unity code example
Example: move to another scene unity
using UnityEngine.SceneManagement;
void Start(){
SceneManager.LoadScene(0/* the scene number*/);
}
using UnityEngine.SceneManagement;
void Start(){
SceneManager.LoadScene(0/* the scene number*/);
}