- Mastering UI Development with Unity
- Ashley Godbold
- 168字
- 2021-08-27 18:43:14
Positioning modes
When using the Rect Tool, it is important that you have the correct positioning modes selected. You can select Center or Pivot and Global or Local. The modes will toggle by clicking on the buttons:

- When in the Center mode, the object will move based on its center point and rotate around its center point.
- When in Pivot mode, the object will rotate around its pivot point rather than its center point. You can also alter the position of the pivot point in this mode by hovering over the pivot point, and clicking and dragging to move.
- When in the Global mode, the Rect Transform's bounding box will be an non-rotated box that encompasses the entire object.
- When in Local mode, the Rect Transform's bounding box will be rotated box that snuggly fits the object.
The following illustration shows the bounding boxes of the Rect Transform for a Panel in Global Mode and Local Mode. The empty blue circle represents the object's pivot point:

推薦閱讀
- Qt 5 and OpenCV 4 Computer Vision Projects
- Learn Type:Driven Development
- Android開發精要
- CentOS 7 Server Deployment Cookbook
- Java EE框架整合開發入門到實戰:Spring+Spring MVC+MyBatis(微課版)
- Developing Middleware in Java EE 8
- Learning ArcGIS Pro
- MySQL數據庫管理與開發(慕課版)
- OpenShift在企業中的實踐:PaaS DevOps微服務(第2版)
- Drupal 8 Configuration Management
- C++面向對象程序設計習題解答與上機指導(第三版)
- C++新經典
- Learning YARN
- Unity Character Animation with Mecanim
- IPython Interactive Computing and Visualization Cookbook