suggestion for Selector class

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Arcanor
Posts: 81
Joined: Sun Oct 05, 2014 4:20 am

suggestion for Selector class

Post 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?
Arcanoria Games - http://www.arcanoria.com - indie game development blog
twitter: https://twitter.com/WaltCollins3 @WaltCollins3
Game titles: Pesticide Patrol, Arcanoria Chronicles, CyberGhost, Arcanoria
PLAY NOW: http://arcanor.itch.io/
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: suggestion for Selector class

Post by Tony Li »

Good addition! Consider it added to the next version.
Post Reply