Selector Confusion -- From Mouse Point

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Arkias
Posts: 8
Joined: Thu Mar 03, 2016 8:05 pm

Selector Confusion -- From Mouse Point

Post by Arkias »

Sorry for the Question Once more!


I was just having one last problem/Confusion with how the system worked. I had set up a selector on the Main Camera, as the object didn't move and there'd be only one of it during the entire game. I set it up for 2D selection and movement, and likewise put the OnUse Trigger, Box Collider 2d and Conversation Trigger on the test object.

So the issue comes from 'Mouse Position' and how it actually works. I had figured that by selecting it, the Camera could remain static, and the player would be allowed to use their mouse to click on an object on the screen. However, it seems like the issue thus becomes that Unless its directly in front of the camera, it wont work. And since I don't want the camera to move at all.. I'm not entirely sure of what the work around is, or if I did something wrong.

Some pictures:

http://puu.sh/nEE6M/05e0ad376b.png --> Object is placed in front of it, and it is thus detected.

http://puu.sh/nEE9y/f97ba05388.png --> Object moved away from the camera, and isn't detected. My Screen capture isn't showing the fact the mouse is atop of it, but even when it is, it doesn't seem to change anything.

Did I do something wrong with how to set it up for a 2D environment, to select objects on the screen?

Thanks once again,

Ark
User avatar
Tony Li
Posts: 22107
Joined: Thu Jul 18, 2013 1:27 pm

Re: Selector Confusion -- From Mouse Point

Post by Tony Li »

Hi,

Here are two things to check:

1. Make sure your camera's Projection mode is set to Orthographic.

2. UI elements will block the selector. This is intentional so you can't accidentally select something that's under a menu.

Here's an example scene:

SelectorTest2D_2016-03-13.unitypackage

If that doesn't help, please feel free to send me an example scene or project. I'll be happy to take a look.
Post Reply