划重点:Rect的属性只与Rect自身有关
1、Rect以左下角为原点,坐标轴如图
Unity Rect踩坑 属性解析
2、关于center和pivot
center是几何中心 几何位置固定
pivot是轴心[0,1] 左下角为(0,0) 右上角为(1,1)
center的坐标值是相对于以pivot为坐标原点的数值,看图
(1)pivot=(0.5,0.5)
Unity Rect踩坑 属性解析
(2)pivot=(0,1)
Unity Rect踩坑 属性解析
(3)pivot=(1,1)
Unity Rect踩坑 属性解析

相关文章:

  • 2021-04-10
  • 2021-10-10
  • 2021-08-15
  • 2021-12-05
  • 2021-04-15
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
猜你喜欢
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2021-12-08
  • 2021-10-02
  • 2022-12-23
相关资源
相似解决方案