Home > other >  When running the game in order to design the UI is different from the default resolution, for the fi
When running the game in order to design the UI is different from the default resolution, for the fi

Time:09-29

Requirement: do Tips adaptive
Approach: to the world coordinate to carry on the assignment, click on the button to calculate relative offset, calculate the relative coordinates and assignment
 UIObjects. M_offset. The transform. The position=pos 
UIObjects. M_offset. Transform. LocalPosition=UIObjects. M_offset. Transform. LocalPosition + offset


Run the resolution: 2280 * 1080 (1366 * 768 has a problem as long as it's not)

UI (1366 * 768) :
Run the resolution: 2280 * 1080 (1366 * 768 has a problem as long as it's not)

Results: as the chart, "1" is the first time start the unity operation, "2" is further operation (subsequent)

CodePudding user response:

First thank you bosses
  • Related