Author Topic: 3.9.4 NGUI  (Read 6841 times)

AlexeyTsoy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 20
    • View Profile
3.9.4 NGUI
« on: October 05, 2015, 04:48:07 AM »
I have a problem with new NGUI! When i add script on button to print("Some"); and push it, button just changes position and scale! and nothing is printed! (button doesn't work)! Can you fix this issue!

Vic3M

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: 3.9.4 NGUI
« Reply #1 on: October 05, 2015, 02:40:34 PM »
I am also facing this issue with this 3.9.4 version.
When adding scripts to the Button click or using the Event trigger, it seems it is making weird things, trying to GetComponents. I am seeing the following errors in console:

  1. Could not find method 'GetComponentsInChildren' on ModifyTargetTransform
  2. UnityEngine.Debug:LogError(Object, Object)
  3. EventDelegate:Cache() (at Assets/NGUI/Scripts/Internal/EventDelegate.cs:405)
  4. EventDelegate:get_parameters() (at Assets/NGUI/Scripts/Internal/EventDelegate.cs:193)
  5. EventDelegateEditor:Field(Object, EventDelegate, Boolean, Boolean) (at Assets/NGUI/Scripts/Editor/EventDelegateEditor.cs:143)
  6. EventDelegateEditor:Field(Object, List`1, String, String, Boolean) (at Assets/NGUI/Scripts/Editor/EventDelegateEditor.cs:275)
  7. UIEventTriggerEditor:DrawEvents(String, String, List`1, Boolean) (at Assets/NGUI/Scripts/Editor/UIEventTriggerEditor.cs:55)
  8. UIEventTriggerEditor:OnInspectorGUI() (at Assets/NGUI/Scripts/Editor/UIEventTriggerEditor.cs:39)
  9. UnityEditor.DockArea:OnGUI()

I cannot add any parameter to the function as before and when assigning a function to the event sometimes it gets changed or stuck in a certain function without being able to change it. I have tried to use functions that do not receive parameters but still I am facing those errors that point to the NGUI EventDelegate script.

KingSlizzard

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: 3.9.4 NGUI
« Reply #2 on: October 05, 2015, 04:28:32 PM »
I have the same issue after updating. NGUI is basically completely broken now if you plan on adding buttons (and who doesn't add buttons?)

shunsuke

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: 3.9.4 NGUI
« Reply #3 on: October 06, 2015, 07:38:07 AM »
I found a problem with the added this part.

PropertyReferenceDrawer line : 142
Array.Sort(names);

I no longer exhibit this problem by removing it.

MooseMouse

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: 3.9.4 NGUI
« Reply #4 on: October 06, 2015, 12:08:40 PM »
I am also experiencing this problem. Making the change shunsuke suggested fixed the problem, but I am nervous about other problems this fix may generate. Can we get an official workaround?

Vic3M

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: 3.9.4 NGUI
« Reply #5 on: October 07, 2015, 11:25:29 AM »
I also confirm that temporal FIX by @shunsuke works.

I actually reviewed my project version control and noted that the PropertyReferenceDrawer.cs file only suffer that changed between a NGUI previous version I had before the update, so hopefully commenting that line will not break anything, it looks like no...

Hope to hear an official solution as it seems from reading forum post the latest NGUI version present a couple of issues in different areas.
Thanks guys for sharing the solution and reporting the problem!

Vic3M

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: 3.9.4 NGUI
« Reply #6 on: November 04, 2015, 12:37:54 PM »
I updated to NGUI version 3.9.4b (latest as of today NOV 04 in the asset store) and the problems persists even when the discussed line was commented for this version.
(Using Unity 4.6.9.)

Update:
This occurs only when you use overloaded functions. So for other guys having similar problems change the function name and everything will work smooth.
 
« Last Edit: November 04, 2015, 12:44:21 PM by Vic3M »