NGUI Addon Error

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Shubius
Posts: 1
Joined: Sat Apr 29, 2017 3:42 am

NGUI Addon Error

Post 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
User avatar
Tony Li
Posts: 22062
Joined: Thu Jul 18, 2013 1:27 pm

Re: NGUI Addon Error

Post by Tony Li »

Hi Phillip,

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