Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Gillissie on August 23, 2012, 12:00:35 PM

Title: bug report in UICamera.cs
Post by: Gillissie on August 23, 2012, 12:00:35 PM
This code in UICamera.cs needs to have the nullcheck on currentTouch.pressed to avoid null reference errors if the clicked object was deleted upon the first click:

  1. if (currentTouch.clickTime + 0.25f > time && currentTouch.pressed != null)
  2. {
  3.         currentTouch.pressed.SendMessage("OnDoubleClick", SendMessageOptions.DontRequireReceiver);
  4. }
  5.  
Title: Re: bug report in UICamera.cs
Post by: ArenMook on August 23, 2012, 07:53:18 PM
Are you running some old version? That code doesn't exist. Everything goes through the Notify function now.