Author Topic: Errors on importing NGUI  (Read 3742 times)

Thx23

  • Guest
Errors on importing NGUI
« on: July 19, 2013, 11:52:54 AM »
Hello,

I used the free version of NGUI previously. Now I deleted the free Versions folder and bought the full version. I downloaded and imported it. But I get a bunch of Errors relating to the script UIFont.cs. Here's the console output:

  1. -----CompilerOutput:-stderr----------
  2.  
  3. Assets/NGUI/Scripts/UI/UIFont.cs(644,38): error CS1502: The best overloaded method match for `UnityEngine.Font.GetCharacterInfo(char, out UnityEngine.CharacterInfo, int, UnityEngine.FontStyle)' has some invalid arguments
  4.  
  5. C:\Program Files (x86)\Unity\Editor\Data\Managed\UnityEngine.dll (Location of the symbol related to previous error)
  6.  
  7. Assets/NGUI/Scripts/UI/UIFont.cs(644,38): error CS1503: Argument `#2' cannot convert `CharacterInfo' expression to type `UnityEngine.CharacterInfo'
  8.  
  9. Assets/NGUI/Scripts/UI/UIFont.cs(645,62): error CS1061: Type `CharacterInfo' does not contain a definition for `vert' and no extension method `vert' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  10.  
  11. Assets/NGUI/Scripts/UI/UIFont.cs(736,58): error CS1502: The best overloaded method match for `UnityEngine.Font.GetCharacterInfo(char, out UnityEngine.CharacterInfo, int, UnityEngine.FontStyle)' has some invalid arguments
  12.  
  13. C:\Program Files (x86)\Unity\Editor\Data\Managed\UnityEngine.dll (Location of the symbol related to previous error)
  14.  
  15. Assets/NGUI/Scripts/UI/UIFont.cs(736,58): error CS1503: Argument `#2' cannot convert `CharacterInfo' expression to type `UnityEngine.CharacterInfo'
  16.  
  17. Assets/NGUI/Scripts/UI/UIFont.cs(737,78): error CS1061: Type `CharacterInfo' does not contain a definition for `width' and no extension method `width' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  18.  
  19. Assets/NGUI/Scripts/UI/UIFont.cs(824,50): error CS1502: The best overloaded method match for `UnityEngine.Font.GetCharacterInfo(char, out UnityEngine.CharacterInfo, int, UnityEngine.FontStyle)' has some invalid arguments
  20.  
  21. C:\Program Files (x86)\Unity\Editor\Data\Managed\UnityEngine.dll (Location of the symbol related to previous error)
  22.  
  23. Assets/NGUI/Scripts/UI/UIFont.cs(824,50): error CS1503: Argument `#2' cannot convert `CharacterInfo' expression to type `UnityEngine.CharacterInfo'
  24.  
  25. Assets/NGUI/Scripts/UI/UIFont.cs(825,66): error CS1061: Type `CharacterInfo' does not contain a definition for `width' and no extension method `width' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  26.  
  27. Assets/NGUI/Scripts/UI/UIFont.cs(953,50): error CS1502: The best overloaded method match for `UnityEngine.Font.GetCharacterInfo(char, out UnityEngine.CharacterInfo, int, UnityEngine.FontStyle)' has some invalid arguments
  28.  
  29. C:\Program Files (x86)\Unity\Editor\Data\Managed\UnityEngine.dll (Location of the symbol related to previous error)
  30.  
  31. Assets/NGUI/Scripts/UI/UIFont.cs(953,50): error CS1503: Argument `#2' cannot convert `CharacterInfo' expression to type `UnityEngine.CharacterInfo'
  32.  
  33. Assets/NGUI/Scripts/UI/UIFont.cs(954,78): error CS1061: Type `CharacterInfo' does not contain a definition for `width' and no extension method `width' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  34.  
  35. Assets/NGUI/Scripts/UI/UIFont.cs(954,61): error CS1502: The best overloaded method match for `UnityEngine.Mathf.RoundToInt(float)' has some invalid arguments
  36.  
  37. C:\Program Files (x86)\Unity\Editor\Data\Managed\UnityEngine.dll (Location of the symbol related to previous error)
  38.  
  39. Assets/NGUI/Scripts/UI/UIFont.cs(954,61): error CS1503: Argument `#1' cannot convert `object' expression to type `float'
  40.  
  41. Assets/NGUI/Scripts/UI/UIFont.cs(1273,59): error CS1502: The best overloaded method match for `UnityEngine.Font.GetCharacterInfo(char, out UnityEngine.CharacterInfo, int, UnityEngine.FontStyle)' has some invalid arguments
  42.  
  43. C:\Program Files (x86)\Unity\Editor\Data\Managed\UnityEngine.dll (Location of the symbol related to previous error)
  44.  
  45. Assets/NGUI/Scripts/UI/UIFont.cs(1273,59): error CS1503: Argument `#2' cannot convert `CharacterInfo' expression to type `UnityEngine.CharacterInfo'
  46.  
  47. Assets/NGUI/Scripts/UI/UIFont.cs(1276,72): error CS1061: Type `CharacterInfo' does not contain a definition for `vert' and no extension method `vert' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  48.  
  49. Assets/NGUI/Scripts/UI/UIFont.cs(1277,72): error CS1061: Type `CharacterInfo' does not contain a definition for `vert' and no extension method `vert' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  50.  
  51. Assets/NGUI/Scripts/UI/UIFont.cs(1279,73): error CS1061: Type `CharacterInfo' does not contain a definition for `vert' and no extension method `vert' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  52.  
  53. Assets/NGUI/Scripts/UI/UIFont.cs(1280,73): error CS1061: Type `CharacterInfo' does not contain a definition for `vert' and no extension method `vert' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  54.  
  55. Assets/NGUI/Scripts/UI/UIFont.cs(1282,54): error CS1061: Type `CharacterInfo' does not contain a definition for `uv' and no extension method `uv' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  56.  
  57. Assets/NGUI/Scripts/UI/UIFont.cs(1283,54): error CS1061: Type `CharacterInfo' does not contain a definition for `uv' and no extension method `uv' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  58.  
  59. Assets/NGUI/Scripts/UI/UIFont.cs(1284,54): error CS1061: Type `CharacterInfo' does not contain a definition for `uv' and no extension method `uv' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  60.  
  61. Assets/NGUI/Scripts/UI/UIFont.cs(1285,54): error CS1061: Type `CharacterInfo' does not contain a definition for `uv' and no extension method `uv' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  62.  
  63. Assets/NGUI/Scripts/UI/UIFont.cs(1287,69): error CS1061: Type `CharacterInfo' does not contain a definition for `width' and no extension method `width' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  64.  
  65. Assets/NGUI/Scripts/UI/UIFont.cs(1291,51): error CS1061: Type `CharacterInfo' does not contain a definition for `flipped' and no extension method `flipped' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  66.  
  67. -----EndCompilerOutput---------------
  68.  
  69. - Finished compile Library/ScriptAssemblies/Assembly-CSharp.dll
  70. Assets/NGUI/Scripts/UI/UIFont.cs(644,38): error CS1502: The best overloaded method match for `UnityEngine.Font.GetCharacterInfo(char, out UnityEngine.CharacterInfo, int, UnityEngine.FontStyle)' has some invalid arguments
  71.  
  72. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 644)
  73.  
  74. Assets/NGUI/Scripts/UI/UIFont.cs(644,38): error CS1503: Argument `#2' cannot convert `CharacterInfo' expression to type `UnityEngine.CharacterInfo'
  75.  
  76. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 644)
  77.  
  78. Assets/NGUI/Scripts/UI/UIFont.cs(645,62): error CS1061: Type `CharacterInfo' does not contain a definition for `vert' and no extension method `vert' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  79.  
  80. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 645)
  81.  
  82. Assets/NGUI/Scripts/UI/UIFont.cs(736,58): error CS1502: The best overloaded method match for `UnityEngine.Font.GetCharacterInfo(char, out UnityEngine.CharacterInfo, int, UnityEngine.FontStyle)' has some invalid arguments
  83.  
  84. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 736)
  85.  
  86. Assets/NGUI/Scripts/UI/UIFont.cs(736,58): error CS1503: Argument `#2' cannot convert `CharacterInfo' expression to type `UnityEngine.CharacterInfo'
  87.  
  88. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 736)
  89.  
  90. Assets/NGUI/Scripts/UI/UIFont.cs(737,78): error CS1061: Type `CharacterInfo' does not contain a definition for `width' and no extension method `width' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  91.  
  92. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 737)
  93.  
  94. Assets/NGUI/Scripts/UI/UIFont.cs(824,50): error CS1502: The best overloaded method match for `UnityEngine.Font.GetCharacterInfo(char, out UnityEngine.CharacterInfo, int, UnityEngine.FontStyle)' has some invalid arguments
  95.  
  96. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 824)
  97.  
  98. Assets/NGUI/Scripts/UI/UIFont.cs(824,50): error CS1503: Argument `#2' cannot convert `CharacterInfo' expression to type `UnityEngine.CharacterInfo'
  99.  
  100. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 824)
  101.  
  102. Assets/NGUI/Scripts/UI/UIFont.cs(825,66): error CS1061: Type `CharacterInfo' does not contain a definition for `width' and no extension method `width' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  103.  
  104. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 825)
  105.  
  106. Assets/NGUI/Scripts/UI/UIFont.cs(953,50): error CS1502: The best overloaded method match for `UnityEngine.Font.GetCharacterInfo(char, out UnityEngine.CharacterInfo, int, UnityEngine.FontStyle)' has some invalid arguments
  107.  
  108. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 953)
  109.  
  110. Assets/NGUI/Scripts/UI/UIFont.cs(953,50): error CS1503: Argument `#2' cannot convert `CharacterInfo' expression to type `UnityEngine.CharacterInfo'
  111.  
  112. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 953)
  113.  
  114. Assets/NGUI/Scripts/UI/UIFont.cs(954,78): error CS1061: Type `CharacterInfo' does not contain a definition for `width' and no extension method `width' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  115.  
  116. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 954)
  117.  
  118. Assets/NGUI/Scripts/UI/UIFont.cs(954,61): error CS1502: The best overloaded method match for `UnityEngine.Mathf.RoundToInt(float)' has some invalid arguments
  119.  
  120. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 954)
  121.  
  122. Assets/NGUI/Scripts/UI/UIFont.cs(954,61): error CS1503: Argument `#1' cannot convert `object' expression to type `float'
  123.  
  124. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 954)
  125.  
  126. Assets/NGUI/Scripts/UI/UIFont.cs(1273,59): error CS1502: The best overloaded method match for `UnityEngine.Font.GetCharacterInfo(char, out UnityEngine.CharacterInfo, int, UnityEngine.FontStyle)' has some invalid arguments
  127.  
  128. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 1273)
  129.  
  130. Assets/NGUI/Scripts/UI/UIFont.cs(1273,59): error CS1503: Argument `#2' cannot convert `CharacterInfo' expression to type `UnityEngine.CharacterInfo'
  131.  
  132. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 1273)
  133.  
  134. Assets/NGUI/Scripts/UI/UIFont.cs(1276,72): error CS1061: Type `CharacterInfo' does not contain a definition for `vert' and no extension method `vert' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  135.  
  136. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 1276)
  137.  
  138. Error: Analytics Event: 5(Compiler*error CS1061*Type `CharacterInfo' does not contain a definition for `vert' and no extension method `vert' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?))(1): skipped because it was sent more than once in 0.10 seconds
  139. Assets/NGUI/Scripts/UI/UIFont.cs(1277,72): error CS1061: Type `CharacterInfo' does not contain a definition for `vert' and no extension method `vert' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  140.  
  141. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 1277)
  142.  
  143. Error: Analytics Event: 5(Compiler*error CS1061*Type `CharacterInfo' does not contain a definition for `vert' and no extension method `vert' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?))(1): skipped because it was sent more than once in 0.10 seconds
  144. Assets/NGUI/Scripts/UI/UIFont.cs(1279,73): error CS1061: Type `CharacterInfo' does not contain a definition for `vert' and no extension method `vert' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  145.  
  146. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 1279)
  147.  
  148. Error: Analytics Event: 5(Compiler*error CS1061*Type `CharacterInfo' does not contain a definition for `vert' and no extension method `vert' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?))(1): skipped because it was sent more than once in 0.10 seconds
  149. Assets/NGUI/Scripts/UI/UIFont.cs(1280,73): error CS1061: Type `CharacterInfo' does not contain a definition for `vert' and no extension method `vert' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  150.  
  151. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 1280)
  152.  
  153. Assets/NGUI/Scripts/UI/UIFont.cs(1282,54): error CS1061: Type `CharacterInfo' does not contain a definition for `uv' and no extension method `uv' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  154.  
  155. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 1282)
  156.  
  157. Error: Analytics Event: 5(Compiler*error CS1061*Type `CharacterInfo' does not contain a definition for `uv' and no extension method `uv' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?))(1): skipped because it was sent more than once in 0.10 seconds
  158. Assets/NGUI/Scripts/UI/UIFont.cs(1283,54): error CS1061: Type `CharacterInfo' does not contain a definition for `uv' and no extension method `uv' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  159.  
  160. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 1283)
  161.  
  162. Error: Analytics Event: 5(Compiler*error CS1061*Type `CharacterInfo' does not contain a definition for `uv' and no extension method `uv' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?))(1): skipped because it was sent more than once in 0.10 seconds
  163. Assets/NGUI/Scripts/UI/UIFont.cs(1284,54): error CS1061: Type `CharacterInfo' does not contain a definition for `uv' and no extension method `uv' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  164.  
  165. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 1284)
  166.  
  167. Error: Analytics Event: 5(Compiler*error CS1061*Type `CharacterInfo' does not contain a definition for `uv' and no extension method `uv' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?))(1): skipped because it was sent more than once in 0.10 seconds
  168. Assets/NGUI/Scripts/UI/UIFont.cs(1285,54): error CS1061: Type `CharacterInfo' does not contain a definition for `uv' and no extension method `uv' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  169.  
  170. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 1285)
  171.  
  172. Assets/NGUI/Scripts/UI/UIFont.cs(1287,69): error CS1061: Type `CharacterInfo' does not contain a definition for `width' and no extension method `width' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  173.  
  174. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 1287)
  175.  
  176. Assets/NGUI/Scripts/UI/UIFont.cs(1291,51): error CS1061: Type `CharacterInfo' does not contain a definition for `flipped' and no extension method `flipped' of type `CharacterInfo' could be found (are you missing a using directive or an assembly reference?)
  177.  
  178. (Filename: Assets/NGUI/Scripts/UI/UIFont.cs Line: 1291)
  179.  
  180. - Finished compile Library/ScriptAssemblies/Assembly-UnityScript.dll


I don't know what to do.

OnlineCop

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 51
    • View Profile
Re: Errors on importing NGUI
« Reply #1 on: July 19, 2013, 02:04:32 PM »
This seems similar to http://www.tasharen.com/forum/index.php?topic=4179.0

Do you have any other (3rd-party or your own) script that defines 'CharacterInfo' ?

Thx23

  • Guest
Re: Errors on importing NGUI
« Reply #2 on: July 19, 2013, 02:52:25 PM »
Thx, it turned out the ORK Framework (a third Partytool) was the problem. I did the search and moved the scripts to an other folder, now it works :)