Author Topic: Compatibility with Unity 5.1.x  (Read 1575 times)

dxball

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 3
    • View Profile
Compatibility with Unity 5.1.x
« on: December 30, 2016, 01:53:22 AM »
I update my nGUI to latest 3.11.11 and Unity throw some compile error.
(My Unity version is 5.1.4f1)

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

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

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

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

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

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

Does nGUI still work in Unity 5.1.x ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Compatibility with Unity 5.1.x
« Reply #1 on: December 31, 2016, 07:43:14 AM »
Short answer is no, it doesn't -- but you can get it to support it pretty easily by modifying some #ifdefs -- basically use the same code path as for Unity 4.

Officially the latest NGUI only supports Unity 4.7, 5.4, and 5.5.