Page 1 of 1

suggestion for Selector class

Posted: Fri Sep 25, 2015 6:02 am
by Arcanor
I've added this at line 228 of Selector.cs:

Code: Select all

// exit if we're over a UI element:
if (UnityEngine.EventSystems.EventSystem.current.IsPointerOverGameObject())
{
    return;
}
This keeps mouse clicks from selecting 3D scene objects when you click on a UI element that's on top of them.

Is this something you might be willing to add to the system?

Re: suggestion for Selector class

Posted: Fri Sep 25, 2015 9:36 am
by Tony Li
Good addition! Consider it added to the next version.