Author Topic: unity 5 ngui error  (Read 5155 times)

yuvalhaz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
unity 5 ngui error
« on: June 21, 2015, 02:37:44 PM »
hello
i am using the NGUI pro version 

I've update a project to unity 5
i got many ngui errors i've tried to update the ngui package but then all of the ngui stuff stop working so I've replaced  the UI script folder
and the Internal   script folder with the new ngui version and now i get this message :

    "Assets/Plugins/NGUI/Interaction/UIPopupList.cs(710,49): error CS0029: Cannot implicitly convert type `void' to `UnityEngine.BoxCollider' "

when i get to the error in the script its in this line  :       

BoxCollider   bc = NGUITools.AddWidgetCollider(lbl.gameObject);

please help

thank you
yuval

« Last Edit: June 21, 2015, 02:59:23 PM by yuvalhaz »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: unity 5 ngui error
« Reply #1 on: June 21, 2015, 08:17:21 PM »
You need to update your NGUI properly. AddWidgetCollider does not return anything. It's a void function. UIPopupList's line 710 is also different for me. For me the line you referred to is 963.

yuvalhaz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 6
    • View Profile
Re: unity 5 ngui error
« Reply #2 on: June 21, 2015, 10:39:26 PM »
i've updated all of the ngui script and now i get this error :

Assets/NGUI/Scripts/Internal/UIRect.cs(353,55): error CS0121: The call is ambiguous between the following methods or properties: `NGUITools.GetSides(this UnityEngine.Camera, float, UnityEngine.Transform)' and `NGUITools.GetSides(this UnityEngine.Camera, float, UnityEngine.Transform)'

when i push it i get to this line :

      if (anchorCamera != null) return mCam.GetSides(cameraRayDistance, relativeTo);

i still dont know what to do
thank you
yuval

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: unity 5 ngui error
« Reply #3 on: June 25, 2015, 05:54:13 PM »
Please follow the NGUI update instructions from the readme file.