BaseInputModule.IsPointerOverGameObject

Switch to Manual
public bool IsPointerOverGameObject (int pointerId);

Parameters

pointerId指针 ID。

Description

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

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

请参阅 EventSystem.IsPointerOverGameObject