This module is designed to respond to changes in the layout and size of the UI when the screen is in landscape mode or portrait mode. After completing the UI task in horizontal resolution, save it. After completing the UI task in vertical resolution, save it too. And then, automatically set the UI to match the aspect resolution when the screen is rotated.
- Add "Ignore" tag from tag
- Attaching a 'ComponentsManager' script to an empty object
- Attach 'ComponentProperty' script to target Canvas
- Proceed with UI screen operation in landscape or portrait resolution
- Click the 'Save' button on the Component menu in Component Property (or enter the 'shift + s' shortcut)
- Saved Path:
Assets/Resources/JsonData/{Orientation}/{SceneName}/{CanvasName}
- Change to landscape or portrait resolution
- Click the object with the 'ComponentsManager' script attached in the high-key window and enter the 'shift + l' shortcut
- Click the Play button
- Changing the resolution automatically brings up the UI screen that you worked with that resolution