how to reset scene view camera rotation in unity code example
Example 1: how to set a screen rotation in unity
public class Example : MonoBehaviour
{
// Start in landscape mode
void Start()
{
Screen.orientation = ScreenOrientation.LandscapeLeft;
}
}
Example 2: how to reset rotation in unity
transform.rotation = Quaternion.Euler(transform.rotation.x, transform.rotation.y, 0);