Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: blackant on April 07, 2014, 03:44:39 AM

Title: Protection Level ??
Post by: blackant 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

Title: Re: Protection Level ??
Post by: Nicki 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?
Title: Re: Protection Level ??
Post by: blackant 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...
Title: Re: Protection Level ??
Post by: Nicki 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. :)
Title: Re: Protection Level ??
Post by: sfj 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… :(
Title: Re: Protection Level ??
Post by: mattplscott 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?
Title: Re: Protection Level ??
Post by: ArenMook 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
Title: Re: Protection Level ??
Post by: blackant 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 ?
Title: Re: Protection Level ??
Post by: ArenMook 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.
Title: Re: Protection Level ??
Post by: blackant on April 08, 2014, 09:19:25 AM
it works perfectly now !

thanks ArenMook !