Author Topic: EventDelegate (ExecuteInEditModeAttribute) broken in Unity 5.0.0b17  (Read 4049 times)

schellenberghq

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 31
  • Game Programmer
    • View Profile
    • Blog
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.
---------------------------
Jacob S.
Game Programmer
---------------------------

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: EventDelegate (ExecuteInEditModeAttribute) broken in Unity 5.0.0b17
« Reply #1 on: December 12, 2014, 11:59:36 PM »
Please report it to Unity, not me.

schellenberghq

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 31
  • Game Programmer
    • View Profile
    • Blog
Re: EventDelegate (ExecuteInEditModeAttribute) broken in Unity 5.0.0b17
« Reply #2 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.
---------------------------
Jacob S.
Game Programmer
---------------------------

schellenberghq

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 31
  • Game Programmer
    • View Profile
    • Blog
Re: EventDelegate (ExecuteInEditModeAttribute) broken in Unity 5.0.0b17
« Reply #3 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.                         }
---------------------------
Jacob S.
Game Programmer
---------------------------

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: EventDelegate (ExecuteInEditModeAttribute) broken in Unity 5.0.0b17
« Reply #4 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.