Page 1 of 1

NGUI Addon Error

Posted: Sat Apr 29, 2017 3:54 am
by Shubius
Hello,

I just bought the tool and it looks amazing. I was setting up a new project with NGUI via "Third Party Support" and just testing functionality and I noticed the following error:

Assets/Dialogue System/Third Party Support/NGUI/Scripts/NGUI Bark UI/NGUIBarkUI.cs(194,96): error CS0619: `UnityEngine.Component.collider' is obsolete: `Property collider has been deprecated. Use GetComponent<Collider>() instead. (UnityUpgradable)'

The fix is simple, but I thought I would note the issue here.

I replaced the line number 194 in the script "NGUIBarkUI.cs" as follows to fix the error:

Original that throws error:
playerCameraCollider = (playerCameraTransform != null) ? playerCameraTransform.collider : null;

Replaced with:
playerCameraCollider = (playerCameraTransform != null) ? playerCameraTransform.GetComponent<Collider>() : null;

Thanks,
Phillip

Re: NGUI Addon Error

Posted: Sat Apr 29, 2017 9:22 am
by Tony Li
Hi Phillip,

Thanks for reporting that! The next release of the Dialogue System will include the fix.