BaseInputModule.IsPointerOverGameObject

切换到手册
public bool IsPointerOverGameObject (int pointerId);

参数

pointerId指针 ID。

描述

具有给定 ID 的指针是否位于 EventSystem 对象上?

如果模块基于指针且指针位于 EventSystem 对象上,则可以覆盖该参数以返回 true。

请参阅 EventSystem.IsPointerOverGameObject