Author Topic: NGUITools error - Ambiguous Call  (Read 4325 times)

TheQ

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
NGUITools error - Ambiguous Call
« 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)'


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUITools error - Ambiguous Call
« Reply #1 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?

TheQ

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: NGUITools error - Ambiguous Call
« Reply #2 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