Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: TheQ on December 22, 2015, 10:09:38 AM

Title: NGUITools error - Ambiguous Call
Post by: TheQ on December 22, 2015, 10:09:38 AM
Unity 5.3.1f1
NGUI 3.9.6b

Things went a bit screwy on upgrading a project from Unity 4.x to 5.x. Is the following error with NGUI, or as a result of the pear-shaped upgrade? The compiler is groaning over lines 1555, 1564, 1573 and then again at 1642, 1651, 1660.

Q


Full error on import:

"Assets/NGUI/Scripts/Internal/NGUITools.cs(1573,28): 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)'

Title: Re: NGUITools error - Ambiguous Call
Post by: ArenMook on December 23, 2015, 09:33:08 AM
There is only one function with a signature of (this Camera cam, float depth, Transform relativeTo). Why do you have two?
Title: Re: NGUITools error - Ambiguous Call
Post by: TheQ on December 24, 2015, 09:21:49 AM
Yep, realized that myself. I had not purged all of the NGUI files/folders from my project before I updated to 3.9.6b so there were some stray duplicates.

Thanks for the support!

Q