Author Topic: Documentation Feedback: Message Events  (Read 2192 times)

Rafe

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 78
    • View Profile
Documentation Feedback: Message Events
« 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

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Documentation Feedback: Message Events
« Reply #1 on: August 12, 2012, 11:44:54 PM »
You could also just go to the definition of the callback type it's expecting.

Rafe

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 78
    • View Profile
Re: Documentation Feedback: Message Events
« Reply #2 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.