UGUI组件(4)Graphic Raycaster

组件:Graphic Raycasterhtml

(4)Graphic Raycaster
手册:https://docs.unity3d.com/Manual/script-GraphicRaycaster.htmlide

用于检测投向Canvas的射线。
Graphic Raycaster既能够配置忽略背面朝上的图形,也能够被UI元素前的2D和3D对象遮挡。3d

Graphic Raycaster
参数:
Ignore Reversed Graphics:忽略颠倒的图形的射线检测,即旋转180°后的图片不会与射线发生交互(检测)
Blocked Objects:会阻挡图形射线的对象类型(2D或(/和)3D对象,须要有collider组件)。
Blocked Mask:会阻挡图形射线的Layer。htm

相关文章
相关标签/搜索