Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Android auto rotate

Discussion in 'Android' started by ecc83, Jun 28, 2013.

  1. ecc83

    ecc83

    Joined:
    Nov 23, 2012
    Posts:
    32
    I'm currently porting a project from Unity 3.5.7 to Unity 4

    The project has auto rotate, with only landscape orientations allowed.

    In the Unity 4 manifest, I can see

    androidorientation="sensorLandscape"

    in the Unity player activity. There doesn't seem to be an equivalent in the 3.5.7 manifest.

    How does the auto rotation work for the Unity activity, in Unity 3 and 4? I've tried adding the sensorLandscape attribute to my manifest, but when running on device under Unity 4 I can rotate into portrait mode, whereas it works as expected under Unity 3.5.7

    --ecc83