Author Topic: Error after upgrading unity to 4.6.1  (Read 3082 times)

oskanaan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Error after upgrading unity to 4.6.1
« on: January 05, 2015, 05:47:03 AM »
Hi,

I am using NGUI 3.0.8. After upgrading unity to version 4.6.1 I get the following error:

  1. Can't add script behaviour UIRect. The script class can't be abstract!
  2. UnityEngine.GameObject:AddComponent()
  3. UITweener:Begin(GameObject, Single) (at Assets/Plugins/NGUI/Tweening/UITweener.cs:385)
  4. TweenAlpha:Begin(GameObject, Single, Single) (at Assets/Plugins/NGUI/Tweening/TweenAlpha.cs:60)
  5. GuiUtils:FadeIn(GameObject, Vector3, Vector3, Single) (at Assets/Internal/scripts/Utils/GuiUtils.js:7)

The fadein function is as follows:

  1.         static function FadeIn(item:GameObject,fromPosition:Vector3,toPosition:Vector3,alpha:float){
  2.                 MoveIn(item,fromPosition,toPosition);
  3.                 var tweenAlpha:TweenAlpha = TweenAlpha.Begin(item,.2,alpha);
  4.                 tweenAlpha.from=0;
  5.         }

Any help to fix this is much appreciated.

Thanks!

oskanaan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Error after upgrading unity to 4.6.1
« Reply #1 on: January 05, 2015, 06:04:42 AM »
Sorry, my bad, after upgrading to the latest NGUI version everything works fine...