RaycastResult

struct in UnityEngine.EventSystems

切换到手册

描述

来自 BaseRaycaster 的命中结果。

变量

depth元素的相对深度。
distance到命中位置的距离。
gameObject射线投射命中的 GameObject。
index命中索引。
isValid是否存在关联的模块和命中 GameObject。
module提高命中率的 BaseInputModule。
screenPosition生成射线投射的屏幕位置。
sortingLayer命中对象的 SortingLayer。
sortingOrder命中对象的 SortingOrder。
worldNormal射线投射的命中位置的法线。
worldPosition射线投射已命中位置的世界位置。

公共函数

Clear重置结果。

Did you find this page useful? Please give it a rating: