NGUI Addon Error
Posted: Sat Apr 29, 2017 3:54 am
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
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