Author Topic: sprite2d compile error  (Read 4700 times)

Darvin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
sprite2d compile error
« 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.



I'd appreciate any help.

Best regards

Darvin

ArenMook

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

Darvin

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: sprite2d compile error
« Reply #2 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.
« Last Edit: December 13, 2013, 05:35:56 AM by Darvin »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: sprite2d compile error
« Reply #3 on: December 12, 2013, 10:44:43 AM »
Means you have your own class named "Sprite" which conflicts with Unity's implementation.