Author Topic: [3.6.4b] Javascript Fix not working  (Read 4153 times)

z78

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
[3.6.4b] Javascript Fix not working
« on: July 23, 2014, 02:31:29 PM »
Hi Aren,
I have been working with NGUI the last past two days, and after following each of your video tutorials I can safely say I can safely say I know how to make pretty much anything works. However, my current project is written in JavaScript which as you know is not exactly supported by NGUI, I did read the FAQ, but the fix no longer works, and I also searched the forums for a solution to a similar problem, and I found this : http://www.tasharen.com/forum/index.php?topic=6780.msg31833#msg31833 , however,  that no longer works either.

What needs to be done in order to enable JavaScript Support now?,

PS: I am working with Unity 4.5.2f1 and NGUI 3.6.4b

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [3.6.4b] Javascript Fix not working
« Reply #1 on: July 23, 2014, 08:16:10 PM »
Why doesn't it work? What's the error message?

z78

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Re: [3.6.4b] Javascript Fix not working
« Reply #2 on: July 24, 2014, 04:06:37 AM »
Error CS0246 which occurs about a 100 times all across NGUI scripts.

  1. Assets/Plugins/NGUI/Interaction/TypewriterEffect.cs(76,9): error CS0246: The type or namespace name `BetterList`1' could not be found. Are you missing a using directive or an assembly reference?
  2.  
  3. Assets/Plugins/NGUI/Interaction/UIKeyNavigation.cs(19,23): error CS0246: The type or namespace name `BetterList`1' could not be found. Are you missing a using directive or an assembly reference?
  4.  
  5. Assets/Plugins/NGUI/Interaction/UIGrid.cs(103,16): error CS0246: The type or namespace name `BetterList`1' could not be found. Are you missing a using directive or an assembly reference?
  6.  
  7. Assets/Plugins/NGUI/Interaction/TypewriterEffect.cs(76,9): error CS0246: The type or namespace name `BetterList`1' could not be found. Are you missing a using directive or an assembly reference?
  8.  
  9. (Filename: Assets/Plugins/NGUI/Interaction/TypewriterEffect.cs Line: 76)
  10.  
  11. Assets/Plugins/NGUI/Interaction/UIKeyNavigation.cs(19,23): error CS0246: The type or namespace name `BetterList`1' could not be found. Are you missing a using directive or an assembly reference?
  12.  
  13. (Filename: Assets/Plugins/NGUI/Interaction/UIKeyNavigation.cs Line: 19)
  14.  
  15. Assets/Plugins/NGUI/Interaction/UIGrid.cs(103,16): error CS0246: The type or namespace name `BetterList`1' could not be found. Are you missing a using directive or an assembly reference?
  16.  
  17. (Filename: Assets/Plugins/NGUI/Interaction/UIGrid.cs Line: 103)
  18. ...
  19.  


I made a quick and dirty script in C# to get the data I need from my JavaScript files (I also had to force Unity into compiling JavaScript files before C# files), and it does work well, but I am basically calling a few functions that I would otherwise not need (the functions that get me the required data I from my Js Scripts). 

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: [3.6.4b] Javascript Fix not working
« Reply #3 on: July 25, 2014, 01:07:16 AM »
It can't find the BetterList class. Where is it located for you after you move the NGUI into plugins? It should be in Assets/Plugins/NGUI/Internal.