Hi everyone,
In my project I have a camera that moves over a playfield. However when i load a different scene (gamescene) the camera won’t move anymore. The camera in set to “not destroy on load” and the camera in the gamescene is removed because I dont need it anyway.
In console I tested if the move script is activated in the gamescene and it is but the camera just wont move.
Here is the camera move scipt;
if (mouseY > treshY) { //maak eventueel van 0.27f een vaste waarde net zoals je x hebt berekent met panel (centerPan)
Debug.Log("UP");
thisCam.transform.Translate (Vector3.up * 10f * Time.deltaTime);
}
if (mouseY < -treshY) {
Debug.Log("DOWN");
Camera.main.transform.Translate (Vector3.down * 10f * Time.deltaTime);
}