- Home /
Question by
LokeshM · Sep 10, 2018 at 01:26 PM ·
uitransformpositiongameobjectsdeviceorientation
How to change the gameobjects position and transform in a scene when the device orientation changes.
I'm looking for a way to change the game objects position and transform in a scene whenever the device orientation changes. i.e I want my scene to have different layouts for Landscape and Portrait modes. ,I'm looking for a way to change the transform and positions of the Game objects in a scene when ever the device orientation changes.
Comment
Answer by misher · Sep 10, 2018 at 03:01 PM
You need to be able to detect screen orientation event first of all. Read this forum post to know how.
I already read that article and was able to detect changes in screen orientation. Thank you. What i'm looking for is a way to change the position and transform of gameobjects for every screen orientation event.
Your answer
![](https://koobas.hobune.stream/wayback/20220612174338im_/https://answers.unity.com/themes/thub/images/avi.jpg)