Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: DoFuchs on June 27, 2013, 01:19:37 PM

Title: Use a GameObject to control UI Elements instead of Mouse ?
Post by: DoFuchs on June 27, 2013, 01:19:37 PM
Im using a little custom Cursor that is driven by the Kinect.
But unfortunately the most common Events are triggered by the Mouse.
Is there a workaround to map those events to a Custom Game Object via Collision detection?

Title: Re: Use a GameObject to control UI Elements instead of Mouse ?
Post by: ArenMook on June 27, 2013, 02:00:31 PM
Game object? No. But you can create custom events. Look at UICamera.onCustomInput.
Title: Re: Use a GameObject to control UI Elements instead of Mouse ?
Post by: DoFuchs on June 27, 2013, 02:39:21 PM
I will give it a try. Thanks!