Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: matt1 on July 19, 2013, 01:24:27 PM

Title: Random errors
Post by: matt1 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!
Title: Re: Random errors
Post by: kevork 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.
Title: Re: Random errors
Post by: matt1 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
Title: Re: Random errors
Post by: matt1 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 :(
Title: Re: Random errors
Post by: ArenMook 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.