Author Topic: NGUI v3.5.9 no work for me unity 4.0.0f7  (Read 3766 times)

clemrod

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
NGUI v3.5.9 no work for me unity 4.0.0f7
« on: May 10, 2014, 03:13:59 AM »
I download nGUI 3.5.9  i have 2 errors in console

1)
Assets/NGUI/Scripts/Internal/UIDrawCall.cs(293,55): error CS1061: Type `UnityEngine.Material' does not contain a definition for `shaderKeywords' and no extension method `shaderKeywords' of type `UnityEngine.Material' could be found (are you missing a using directive or an assembly reference?)

2)
Assets/NGUI/Scripts/Internal/UIDrawCall.cs(295,45): error CS1061: Type `UnityEngine.Material' does not contain a definition for `EnableKeyword' and no extension method `EnableKeyword' of type `UnityEngine.Material' could be found (are you missing a using directive or an assembly reference?)


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI v3.5.9 no work for me unity 4.0.0f7
« Reply #1 on: May 10, 2014, 11:55:43 PM »
Are you using some older version of Unity? I tested it on 3.5 and 4.3. I'm guessing you have something in-between. Modify the #if on line 292 of UIDrawCall.cs to exclude your version of Unity.

clemrod

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: NGUI v3.5.9 no work for me unity 4.0.0f7
« Reply #2 on: May 11, 2014, 04:56:28 AM »
thank for help , yes my version unity 4.0.07f is old but I can not modify the line for NGUI work

i try modify line 292 #if !UNITY_3_5 to #if !UNITY_4_0

17 errors  : Assets/NGUI/Scripts/Editor/UIWrapContentEditor.cs(13,2): error CS1729: The type `UnityEditor.CustomEditor' does not contain a constructor that takes `2' arguments

i try modify line 292 #if !UNITY_3_5 to #if !UNITY_4_0_07f

the same 2 error : Assets/NGUI/Scripts/Internal/UIDrawCall.cs(293,55): error CS1061: Type `UnityEngine.Material' does not contain a definition for `shaderKeywords' and no extension method `shaderKeywords' of type `UnityEngine.Material' could be found (are you missing a using directive or an assembly reference?)

i no understand

clemrod

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: NGUI v3.5.9 no work for me unity 4.0.0f7
« Reply #3 on: May 11, 2014, 05:02:13 AM »
PS : NGUI 2.3.3 works well in my unity. but i lost the download in asset store after the update.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI v3.5.9 no work for me unity 4.0.0f7
« Reply #4 on: May 11, 2014, 08:16:29 AM »
"UNITY_4_0_07f" is not a valid keyword. UNITY_4_0 would be the valid keyword for your version of Unity.

In any case NGUI doesn't support Unity 4.0. You should update to 4.2 or 4.3.