Unity-Logs-Viewer icon indicating copy to clipboard operation
Unity-Logs-Viewer copied to clipboard

An rare issue with NGUI, Unity 2018 and mobiles.

Open NDark opened this issue 3 years ago • 0 comments

There is an rare-observed issue as NGUI and Log Viewer co-existing in Unity 2018 on mobile platforms. Because rare articles encountered and talked about this, I think it is worthy to mention, in case others face the same problem.

Description:

As coexisting with NGUI, Log Viewer in Unity 2017 works fine on my project but when I tried to upgraded to Unity 2018 Log Viewer mal-functioned only in tapping buttons and tapping log items on mobile platforms (iOS and android).

Solution:

Disable auto hide cursor of NGUI UICamera at first scene solved the problem.

Test environment:

  • Log Viewer versions : before 1.7
  • Unity 2017 mobile (android/ios/editor/webgl): all fines.
  • Unity 2018 editor/webgl: fine, android/ios: failed to tapping on navigation buttons and log items.
  • Upgrading Log Viewer to version 1.8 didn't solve this issue.
  • Scrolling navigation buttons(horizontal) and scrolling log items(vertical) are fine always. But unable to tap close button to close Log Viewer.
  • First scene with Log viewer reporter, a NGUI root, UICamera(UIevent) and panels which not destroyed between scenes; Other scenes with their own NGUI root, UICamera, and other NGUI objects.
  • A article attracts my attention, so auto hide cursor setting in UICamera of NGUI did solve this issue.
  • Even though the UICamera(s) in other scenes checked the auto-hide-cursor by default, but only un-ckecking auto-hide-cursor of the UICamera in the first scene solved the issue. (No need to un-check the setting in all the scenes)

NDark avatar Aug 07 '21 11:08 NDark