Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: yuvalhaz 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
-
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.
-
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
-
Please follow the NGUI update instructions from the readme file.