[TASK] Added more duck spawn, performance fixes, instruction in the minigame, option to zoom in on stickers
This commit is contained in:
23
Assets/CrystalFramework/Utility/Demos/SafeAreaDemo.txt
Normal file
23
Assets/CrystalFramework/Utility/Demos/SafeAreaDemo.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
===============================
|
||||
Safe Area Helper
|
||||
===============================
|
||||
|
||||
Usage:
|
||||
|
||||
1. Create desired aspect ratios in the Game Window, e.g. 195:90 and 90:195 for iPhone X series.
|
||||
2. Add the SafeArea.cs component to your GUI panels.
|
||||
3. Add the SafeAreaDemo.cs once to a component in your scene.
|
||||
4. Run the game and use the Toggle hotkey (default "A") to toggle between simulated devices.
|
||||
Be sure to match the simulated device with the correct aspect ratio in your Game Window.
|
||||
|
||||
Add your own simulated devices:
|
||||
|
||||
1. Run an empty scene to the target mobile device with one GUI panel containing the SafeArea.cs component.
|
||||
2. Rotate the device to each of the four orientations. Copy the pixel coordinates for each orientation from the debug output.
|
||||
3. Enter the simulated device into SafeArea.cs using the same technique for the iPhone X.
|
||||
|
||||
See notes in SafeArea.cs and read our article online for a full breakdown of how the Safe Area works.
|
||||
|
||||
If you have a suggestion or request for a simluated device to be added to the list, please let us know in the Unity forums.
|
||||
|
||||
If this asset helped you, please rate us on the Asset Store!
|
||||
Reference in New Issue
Block a user