Cursor Problem

kevinmore

22-03-2013 01:01:44

Hi,

Currently I've done the entity picking with cursor and raycast. But when the cursor is on a widget, it still does raycast. Is there a way to avoid this?

And also, I use wasd keys to control the camera, when I type something in the editbox, the camera moves. Is there a way to avoid this?

Thanks!

Altren

23-03-2013 11:23:42

In both cases you should use inject*** methods result.
injectMousePress/Release return true whenever you click on GUI element that receive mouse input (any widget on common layer and without disabled mouse input).
injectKeyPress/Releass return true whenever widget handled keyboard input.

kevinmore

23-03-2013 15:31:33

In both cases you should use inject*** methods result.
injectMousePress/Release return true whenever you click on GUI element that receive mouse input (any widget on common layer and without disabled mouse input).
injectKeyPress/Releass return true whenever widget handled keyboard input.

Problem Solved, Thanks!