Author Topic: NGUI 3.5.9 windows 8 Issues  (Read 5629 times)

GarryO

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
NGUI 3.5.9 windows 8 Issues
« on: May 14, 2014, 06:56:12 PM »
Hi,

Im in the process of porting my IOS game to windows 8 and upgraded to NGUI 3.5.9 to eliminate the datanode error that showed in the previous release of NGUI. I now have 6 new errors for a total of 12 errors. Do you have mitigation's for these errors?

Assets/Assets/NGUI/Scripts/UI/UI2DSprite.cs(197,33): error CS0508: `UI2DSprite.OnUpdate()': return type must be `bool' to match overridden member `UIWidget.OnUpdate()'

Assets/Assets/NGUI/Scripts/UI/UI2DSprite.cs(197,33): error CS0507: `UI2DSprite.OnUpdate()': cannot change access modifiers when overriding `public' inherited member `UIWidget.OnUpdate()'

Assets/Assets/NGUI/Scripts/UI/UI2DSprite.cs(143,33): error CS0115: `UI2DSprite.drawingDimensions' is marked as an override but no suitable property found to override

Assets/Assets/NGUI/Scripts/UI/UI2DSprite.cs(82,32): error CS0115: `UI2DSprite.shader' is marked as an override but no suitable property found to override

Assets/Assets/NGUI/Scripts/Tweening/TweenWidth.cs(75,30): error CS0115: `TweenWidth.SetEndToCurrentValue()' is marked as an override but no suitable method found to override

Assets/Assets/NGUI/Scripts/Tweening/TweenWidth.cs(72,30): error CS0115: `TweenWidth.SetStartToCurrentValue()' is marked as an override but no suitable method found to override

Assets/Assets/NGUI/Scripts/Tweening/TweenOrthoSize.cs(65,30): error CS0115: `TweenOrthoSize.SetEndToCurrentValue()' is marked as an override but no suitable method found to override

Assets/Assets/NGUI/Scripts/Tweening/TweenOrthoSize.cs(64,30): error CS0115: `TweenOrthoSize.SetStartToCurrentValue()' is marked as an override but no suitable method found to override

Assets/Assets/NGUI/Scripts/Tweening/TweenHeight.cs(75,30): error CS0115: `TweenHeight.SetEndToCurrentValue()' is marked as an override but no suitable method found to override

Assets/Assets/NGUI/Scripts/Tweening/TweenHeight.cs(72,30): error CS0115: `TweenHeight.SetStartToCurrentValue()' is marked as an override but no suitable method found to override

Assets/Assets/NGUI/Scripts/Interaction/UIWrapContent.cs(36,9): error CS0246: The type or namespace name `UIScrollView' could not be found. Are you missing a using directive or an assembly reference?

Assets/Assets/NGUI/Scripts/Interaction/UIDragDropItem.cs(46,19): error CS0246: The type or namespace name `UIDragScrollView' could not be found. Are you missing a using directive or an assembly reference?


any assistance will be greatly appreciated.


Regards,

Garry O

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 3.5.9 windows 8 Issues
« Reply #1 on: May 15, 2014, 12:12:02 AM »
You need to follow the 3-step upgrade instructions from the readme file. More specifically -- you need to clean out the previous version of NGUI before importing the update.

GarryO

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: NGUI 3.5.9 windows 8 Issues
« Reply #2 on: May 15, 2014, 06:13:48 AM »
Thanks,

That fixed 8 of the 12 errors. Advice to others. follow the 3 step instructions:

If you have a Standard Edition:

1. In Unity, File -> New Scene
2. Delete the NGUI folder from the Project View.
3. Import NGUI from the updated Unity Package.

As a result I have the following 4 errors:

Assets/Assets/NGUI3x_Widgets_volume_3/Scripts/UISlider360.cs(14,28): error CS0246: The type or namespace name `UIWidgetContainer' could not be found. Are you missing a using directive or an assembly reference?

Assets/NGUI/Scripts/UI/UIFilledSprite.cs(15,31): error CS0246: The type or namespace name `UISprite' could not be found. Are you missing a using directive or an assembly reference?

Assets/NGUI/Scripts/UI/UIInputSaved.cs(13,29): error CS0246: The type or namespace name `UIInput' could not be found. Are you missing a using directive or an assembly reference?

Assets/NGUI/Scripts/UI/UISlicedSprite.cs(15,31): error CS0246: The type or namespace name `UISprite' could not be found. Are you missing a using directive or an assembly reference?

Do you have fixes for these ?


Regards,

Garry O.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI 3.5.9 windows 8 Issues
« Reply #3 on: May 15, 2014, 11:24:50 AM »
The only way you can possibly get those errors is if you haven't actually followed the 3 step process you said you followed.

Note step 2. You need to delete the old version of NGUI. Fully. Gone. If you had done that, how can you possibly still have "UIInputSaved", "UISlicedSprite", etc? They don't exist in the current version of NGUI.

GarryO

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: NGUI 3.5.9 windows 8 Issues
« Reply #4 on: May 15, 2014, 02:05:20 PM »
Hi,

I followed the steps precisely. Does the Hud Text package have to be removed as well? its not in the NGUI path?


Garry

GarryO

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Re: NGUI 3.5.9 windows 8 Issues
« Reply #5 on: May 15, 2014, 02:43:42 PM »
Found the root cause. another package NGUI 3.x widgets volume_3 needed to be removed and re-imported at the same time.

For others, it may be a good idea to find and re-import other packaged dependent on NGUI if the run into issues.


Thanks for your assistance.

Cheers,

Garry