我的Unity冷知识记录
UGUI图片沿X或Y翻转180°后会失去射线检测效果[2018.1] 原因: Canvas的GraphicRaycaster的`Ignore Reversed Graphics`选项决定反转的Graphic是否会被射线检测忽略 Mask组件的Show Mask Graphic属性在Animation动画中改变后无效 [2018.2] 可能是bug Editor中RectTransform的锚点消失[2018.2]. Bug: 重启Editor没用,需要关闭Scene标签后重新打开.或者试试在[Window]—>[Layouts]中重新应用窗口布局 Animator.Rebind() 在animator组件disable之前调用它,回滚动画到动画开始的状态. Description 描述 Rebind all the animated properties and mesh data with the Animator. 重新绑定动画器的所有动画的属性和网格数据。 This function can be used when you manually change your GameObject hierarchy by script, like combining meshes or swap a complete transform hierarchy.