Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Rafe on August 12, 2012, 11:27:20 PM

Title: Documentation Feedback: Message Events
Post by: Rafe on August 12, 2012, 11:27:20 PM
Hi,

It would be helpful to add the types to the signatures of the events at: http://www.tasharen.com/ngui/docs/class_u_i_camera.html

It took me a good bunch of minutes to realize the OnDrag signature I was using was 'float delta' instead of 'Vector2 delta'. I figured it out with a chance search on these forums. The Unity error message was just "The best match for OnDrag has some invalid parameters."

Hope this helps,

- Rafe
Title: Re: Documentation Feedback: Message Events
Post by: ArenMook on August 12, 2012, 11:44:54 PM
You could also just go to the definition of the callback type it's expecting.
Title: Re: Documentation Feedback: Message Events
Post by: Rafe on August 13, 2012, 01:00:51 AM
"could", but didn't. I'm not saying it was smart, but it happened and I figured sharing would help someone. These things happen in development.