Method IsOverUIGameObject
IsOverUIGameObject()
Use this to determine if the ray is currently hovering over a UI GameObject.
Declaration
public bool IsOverUIGameObject()
Returns
| Type | Description |
|---|---|
| bool | Returns true if hovering over a UI element. Otherwise, returns false. |
Remarks
enableUIInteraction must be enabled, otherwise the function will always return false.