Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Darvin on December 12, 2013, 03:03:42 AM

Title: sprite2d compile error
Post by: Darvin on December 12, 2013, 03:03:42 AM
Hello,

I'm getting compile errors with 3.0.7 f1. I'm using Unity 4.3.

(http://i44.tinypic.com/2qa395w.jpg)

I'd appreciate any help.

Best regards

Darvin
Title: Re: sprite2d compile error
Post by: ArenMook on December 12, 2013, 06:12:15 AM
You might want to post the actual error. This tells me nothing as I know the UI2DSprite and NGUISettings both have the 'sprite2D' properties.
Title: Re: sprite2d compile error
Post by: Darvin on December 12, 2013, 09:51:35 AM
You might want to post the actual error. This tells me nothing as I know the UI2DSprite and NGUISettings both have the 'sprite2D' properties.

Sorry about that. Here's the error code.

  1. Assets/NGUI/Scripts/Editor/NGUISettings.cs(385,19): error CS0029: Cannot implicitly convert type `Sprite' to `UnityEngine.Sprite'

Edit:Didn't want to bump the thread.
Thanks, I found the problem thanks to your explanation.
Title: Re: sprite2d compile error
Post by: ArenMook on December 12, 2013, 10:44:43 AM
Means you have your own class named "Sprite" which conflicts with Unity's implementation.