Author Topic: Protection Level ??  (Read 8199 times)

blackant

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
    • blackant master
Protection Level ??
« on: April 07, 2014, 03:44:39 AM »
Hello,

i'm working with Unity WiiU version, and just installed the new update of NGUI wich show me this problem:

Quote
Assets/NGUI/Scripts/Editor/PropertyReferenceDrawer.cs(169,55): error CS0122: `UnityEditor.EditorGUIUtility.labelWidth' is inaccessible due to its protection level


Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Protection Level ??
« Reply #1 on: April 07, 2014, 03:49:24 AM »
Then NGUI is incompatible with the version of Unity you have. Are you on the newest version?

blackant

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
    • blackant master
Re: Protection Level ??
« Reply #2 on: April 07, 2014, 03:56:50 AM »
the newest version of unityWiiU you mean ?

they still continue updating the 4.2... if it makes sence...

i have installed the older version of NGUI, it looks to works, but when i try to create an atlas, i get this:

Quote
NullReferenceException
UnityEngine.Material..ctor (UnityEngine.Shader shader) (at C:/BuildAgent/work/e32e3436d0e48bd0/Runtime/ExportGenerated/WiiUEditorExtensions/Graphics.cs:1684)
UIAtlasMaker.OnGUI () (at Assets/NGUI/Scripts/Editor/UIAtlasMaker.cs:734)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Applications/buildAgent/work/c514da0c8183631c/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

plus

if unity start looking for existing atlas, it takes eternity to see that there is not atlas in the project...
« Last Edit: April 07, 2014, 04:12:37 AM by blackant »

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Protection Level ??
« Reply #3 on: April 07, 2014, 07:36:56 AM »
Ah, wiiU - I thought Wii. Hmm, well, it seems like NGUI doesn't support that relatively old build of unity. @arenmook might make a fix for you, when he sees this, since you can't update any faster than unity does. :)

sfj

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: Protection Level ??
« Reply #4 on: April 07, 2014, 01:30:41 PM »
I also got this today when I upgraded…I'm using unity 4.2…as far as I understand there are still a lot of issues with unity 4.3…debugging not working properly is one of them…compatibility problems with osx mavericks etc…making a lot of people stuck on 4.2 for the time being… :(

mattplscott

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Protection Level ??
« Reply #5 on: April 07, 2014, 06:58:43 PM »
I am running Unity 4.2.2f, and I just updated to NGUI 3.5.6.

After import an error appears:
Assets/NGUI/Scripts/Editor/PropertyReferenceDrawer.cs(169,55): error CS0122: `UnityEditor.EditorGUIUtility.labelWidth' is inaccessible due to its protection level

I checked and EditorGUIUtility.labelWidth is marked as "internal".

This affects the OnGUI (Rect rect, SerializedProperty prop, GUIContent label) function in that file.

Does anyone have a work around on this yet?
I has been quite a while since I updated NGUI, so I'd like to get the update, but is there a way to go back to the previous version of NGUI before 3.5.6?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Protection Level ??
« Reply #6 on: April 07, 2014, 11:22:11 PM »
Change the #if statement above to exclude 4.2:
  1. #if !UNITY_3_5 && !UNITY_4_0 && !UNITY_4_1 && !UNITY_4_2

blackant

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
    • blackant master
Re: Protection Level ??
« Reply #7 on: April 08, 2014, 02:11:56 AM »
should be nice to have this fix !!!

how can i have a date to tell it to my team ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Protection Level ??
« Reply #8 on: April 08, 2014, 02:19:29 AM »
Just change it locally. This change is already in the Professional repository, so it will be live later this week.

blackant

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
    • blackant master
Re: Protection Level ??
« Reply #9 on: April 08, 2014, 09:19:25 AM »
it works perfectly now !

thanks ArenMook !