Code: Select all
// exit if we're over a UI element:
if (UnityEngine.EventSystems.EventSystem.current.IsPointerOverGameObject())
{
return;
}
Is this something you might be willing to add to the system?
Code: Select all
// exit if we're over a UI element:
if (UnityEngine.EventSystems.EventSystem.current.IsPointerOverGameObject())
{
return;
}