Author Topic: Random errors  (Read 5594 times)

matt1

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 28
    • View Profile
Random errors
« on: July 19, 2013, 01:24:27 PM »
Hi there,
Imported a new package and started getting these errors:

Assets/NGUI/Scripts/Interaction/UIButtonPlayAnimation.cs(39,52): error CS0117: `Direction' does not contain a definition for `Forward'
Assets/NGUI/Scripts/Interaction/UIButtonTween.cs(38,52): error CS0117: `Direction' does not contain a definition for `Forward'
Assets/NGUI/Scripts/Internal/ActiveAnimation.cs(39,46): error CS0117: `Direction' does not contain a definition for `Toggle'
Assets/NGUI/Scripts/Internal/ActiveAnimation.cs(40,49): error CS0117: `Direction' does not contain a definition for `Toggle'

I've tried to re-import NGUI by completely deleting the folder and all of it's components, but no luck.

Any help would be appreciated.

Thanks!

kevork

  • Guest
Re: Random errors
« Reply #1 on: July 19, 2013, 04:08:15 PM »
Quick guess, the new package you imported has a type named Direction.

You can either change the name of that type (or put it in a different namespace) or change Direction to AnimationOrTween.Direction on the NGUI lines where you have an error.

matt1

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Random errors
« Reply #2 on: July 20, 2013, 06:53:58 AM »
I was considering this, but didn't want to blow it all up haha. Will give it a go.

Thanks

matt1

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 28
    • View Profile
Re: Random errors
« Reply #3 on: July 20, 2013, 07:38:04 AM »
After giving it a try, I'm having a little trouble. I now get this error:
Assets/NGUI/Scripts/Interaction/UIButtonPlayAnimation.cs(39,16): error CS0246: The type or namespace name `Direction1' could not be found. Are you missing a using directive or an assembly reference?

Which, of course is expected but I can't find where Direction is originally declared :(

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Random errors
« Reply #4 on: July 20, 2013, 03:11:05 PM »
You renamed the wrong class.

Delete NGUI.

Find the "Direction" class.

Rename it to something else using refactoring (not just renaming the file!)

Re-import NGUI.