Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: schellenberghq on December 12, 2014, 08:34:52 PM

Title: EventDelegate (ExecuteInEditModeAttribute) broken in Unity 5.0.0b17
Post by: schellenberghq on December 12, 2014, 08:34:52 PM
Error from console:

Assets/NGUI/Scripts/Internal/EventDelegate.cs(485,81): error CS0246: The type or namespace name `ExecuteInEditModeAttribute' could not be found. Are you missing a using directive or an assembly reference?

Apparently in Unity 5.0.0b17 ExecuteInEditModeAttribute breaks.
Title: Re: EventDelegate (ExecuteInEditModeAttribute) broken in Unity 5.0.0b17
Post by: ArenMook on December 12, 2014, 11:59:36 PM
Please report it to Unity, not me.
Title: Re: EventDelegate (ExecuteInEditModeAttribute) broken in Unity 5.0.0b17
Post by: schellenberghq on December 15, 2014, 09:32:13 AM
My apologies, I thought this was an NGUI issue, or perhaps that if Unity broke it, this might have to be updated in the NGUI framework.
Title: Re: EventDelegate (ExecuteInEditModeAttribute) broken in Unity 5.0.0b17
Post by: schellenberghq on December 15, 2014, 09:58:29 AM
I found that if I needed to comment out these lines from EventDelegate.cs script starting on line 482 and down. There is two times that this appears.


  1.  #if UNITY_4_3 || UNITY_4_5 || UNITY_4_6
  2.                                 object[] objs = type.GetCustomAttributes(typeof(ExecuteInEditMode), true);
  3.  #else
  4. //                              object[] objs = type.GetCustomAttributes(typeof(ExecuteInEditModeAttribute), true);
  5.  #endif
  6. //                              if (objs == null || objs.Length == 0) return true;
  7.                         }
Title: Re: EventDelegate (ExecuteInEditModeAttribute) broken in Unity 5.0.0b17
Post by: ArenMook on December 15, 2014, 12:54:38 PM
Yup, Unity seems to have removed their previously added ExecuteInEditModeAttribute, going back to the ExecuteInEditMode they had before.