Camera rotate 90°

Hi

I have this…very summarized:

private WebCamTexture webCamTexture;

public void ActivarCamara()
    {
        webCamTexture = new WebCamTexture();
        ImagenCam.texture = webCamTexture;
        webCamTexture.Play();
    }

But when I test it on my cell phone the image rotated 90 °, how can this be fixed? I looked for information and it did not give me any results :frowning:

Over the years this bug has come and gone in Unity.

At one point back in 2014 I remember there was even some other way to query if it was rotated or something, and we had to read that and decide to flip it over ourselves.

Unfortunately it seems like everything to do with video and cameras is always right on the verge of flaking out or exhibiting weird edge case behavior.

Check if it also might be an interaction between what the phone orientation was when your app started, and the phone orientation when your game in running. I seem to recall Android and iOS had different behavior in this regard.

the app starts and always remains in portrait