Page 1 of 1

Selector Confusion -- From Mouse Point

Posted: Sat Mar 12, 2016 11:55 pm
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

Re: Selector Confusion -- From Mouse Point

Posted: Sun Mar 13, 2016 10:23 am
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.