源战役客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1844 lines
52 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_MeshWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.Mesh), typeof(UnityEngine.Object));
  9. L.RegFunction("GetNativeVertexBufferPtr", GetNativeVertexBufferPtr);
  10. L.RegFunction("GetNativeIndexBufferPtr", GetNativeIndexBufferPtr);
  11. L.RegFunction("ClearBlendShapes", ClearBlendShapes);
  12. L.RegFunction("GetBlendShapeName", GetBlendShapeName);
  13. L.RegFunction("GetBlendShapeIndex", GetBlendShapeIndex);
  14. L.RegFunction("GetBlendShapeFrameCount", GetBlendShapeFrameCount);
  15. L.RegFunction("GetBlendShapeFrameWeight", GetBlendShapeFrameWeight);
  16. L.RegFunction("GetBlendShapeFrameVertices", GetBlendShapeFrameVertices);
  17. L.RegFunction("AddBlendShapeFrame", AddBlendShapeFrame);
  18. L.RegFunction("GetUVDistributionMetric", GetUVDistributionMetric);
  19. L.RegFunction("GetVertices", GetVertices);
  20. L.RegFunction("SetVertices", SetVertices);
  21. L.RegFunction("GetNormals", GetNormals);
  22. L.RegFunction("SetNormals", SetNormals);
  23. L.RegFunction("GetTangents", GetTangents);
  24. L.RegFunction("SetTangents", SetTangents);
  25. L.RegFunction("GetColors", GetColors);
  26. L.RegFunction("SetColors", SetColors);
  27. L.RegFunction("SetUVs", SetUVs);
  28. L.RegFunction("GetUVs", GetUVs);
  29. L.RegFunction("GetTriangles", GetTriangles);
  30. L.RegFunction("GetIndices", GetIndices);
  31. L.RegFunction("GetIndexStart", GetIndexStart);
  32. L.RegFunction("GetIndexCount", GetIndexCount);
  33. L.RegFunction("GetBaseVertex", GetBaseVertex);
  34. L.RegFunction("SetTriangles", SetTriangles);
  35. L.RegFunction("SetIndices", SetIndices);
  36. L.RegFunction("GetBindposes", GetBindposes);
  37. L.RegFunction("GetBoneWeights", GetBoneWeights);
  38. L.RegFunction("Clear", Clear);
  39. L.RegFunction("RecalculateBounds", RecalculateBounds);
  40. L.RegFunction("RecalculateNormals", RecalculateNormals);
  41. L.RegFunction("RecalculateTangents", RecalculateTangents);
  42. L.RegFunction("MarkDynamic", MarkDynamic);
  43. L.RegFunction("UploadMeshData", UploadMeshData);
  44. L.RegFunction("GetTopology", GetTopology);
  45. L.RegFunction("CombineMeshes", CombineMeshes);
  46. L.RegFunction("New", _CreateUnityEngine_Mesh);
  47. L.RegFunction("__eq", op_Equality);
  48. L.RegFunction("__tostring", ToLua.op_ToString);
  49. L.RegVar("indexFormat", get_indexFormat, set_indexFormat);
  50. L.RegVar("vertexBufferCount", get_vertexBufferCount, null);
  51. L.RegVar("blendShapeCount", get_blendShapeCount, null);
  52. L.RegVar("boneWeights", get_boneWeights, set_boneWeights);
  53. L.RegVar("bindposes", get_bindposes, set_bindposes);
  54. L.RegVar("isReadable", get_isReadable, null);
  55. L.RegVar("vertexCount", get_vertexCount, null);
  56. L.RegVar("subMeshCount", get_subMeshCount, set_subMeshCount);
  57. L.RegVar("bounds", get_bounds, set_bounds);
  58. L.RegVar("vertices", get_vertices, set_vertices);
  59. L.RegVar("normals", get_normals, set_normals);
  60. L.RegVar("tangents", get_tangents, set_tangents);
  61. L.RegVar("uv", get_uv, set_uv);
  62. L.RegVar("uv2", get_uv2, set_uv2);
  63. L.RegVar("uv3", get_uv3, set_uv3);
  64. L.RegVar("uv4", get_uv4, set_uv4);
  65. L.RegVar("uv5", get_uv5, set_uv5);
  66. L.RegVar("uv6", get_uv6, set_uv6);
  67. L.RegVar("uv7", get_uv7, set_uv7);
  68. L.RegVar("uv8", get_uv8, set_uv8);
  69. L.RegVar("colors", get_colors, set_colors);
  70. L.RegVar("colors32", get_colors32, set_colors32);
  71. L.RegVar("triangles", get_triangles, set_triangles);
  72. L.EndClass();
  73. }
  74. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  75. static int _CreateUnityEngine_Mesh(IntPtr L)
  76. {
  77. try
  78. {
  79. int count = LuaDLL.lua_gettop(L);
  80. if (count == 0)
  81. {
  82. UnityEngine.Mesh obj = new UnityEngine.Mesh();
  83. ToLua.Push(L, obj);
  84. return 1;
  85. }
  86. else
  87. {
  88. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Mesh.New");
  89. }
  90. }
  91. catch(Exception e)
  92. {
  93. return LuaDLL.toluaL_exception(L, e);
  94. }
  95. }
  96. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  97. static int GetNativeVertexBufferPtr(IntPtr L)
  98. {
  99. try
  100. {
  101. ToLua.CheckArgsCount(L, 2);
  102. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  103. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  104. System.IntPtr o = obj.GetNativeVertexBufferPtr(arg0);
  105. LuaDLL.lua_pushlightuserdata(L, o);
  106. return 1;
  107. }
  108. catch(Exception e)
  109. {
  110. return LuaDLL.toluaL_exception(L, e);
  111. }
  112. }
  113. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  114. static int GetNativeIndexBufferPtr(IntPtr L)
  115. {
  116. try
  117. {
  118. ToLua.CheckArgsCount(L, 1);
  119. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  120. System.IntPtr o = obj.GetNativeIndexBufferPtr();
  121. LuaDLL.lua_pushlightuserdata(L, o);
  122. return 1;
  123. }
  124. catch(Exception e)
  125. {
  126. return LuaDLL.toluaL_exception(L, e);
  127. }
  128. }
  129. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  130. static int ClearBlendShapes(IntPtr L)
  131. {
  132. try
  133. {
  134. ToLua.CheckArgsCount(L, 1);
  135. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  136. obj.ClearBlendShapes();
  137. return 0;
  138. }
  139. catch(Exception e)
  140. {
  141. return LuaDLL.toluaL_exception(L, e);
  142. }
  143. }
  144. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  145. static int GetBlendShapeName(IntPtr L)
  146. {
  147. try
  148. {
  149. ToLua.CheckArgsCount(L, 2);
  150. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  151. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  152. string o = obj.GetBlendShapeName(arg0);
  153. LuaDLL.lua_pushstring(L, o);
  154. return 1;
  155. }
  156. catch(Exception e)
  157. {
  158. return LuaDLL.toluaL_exception(L, e);
  159. }
  160. }
  161. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  162. static int GetBlendShapeIndex(IntPtr L)
  163. {
  164. try
  165. {
  166. ToLua.CheckArgsCount(L, 2);
  167. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  168. string arg0 = ToLua.CheckString(L, 2);
  169. int o = obj.GetBlendShapeIndex(arg0);
  170. LuaDLL.lua_pushinteger(L, o);
  171. return 1;
  172. }
  173. catch(Exception e)
  174. {
  175. return LuaDLL.toluaL_exception(L, e);
  176. }
  177. }
  178. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  179. static int GetBlendShapeFrameCount(IntPtr L)
  180. {
  181. try
  182. {
  183. ToLua.CheckArgsCount(L, 2);
  184. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  185. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  186. int o = obj.GetBlendShapeFrameCount(arg0);
  187. LuaDLL.lua_pushinteger(L, o);
  188. return 1;
  189. }
  190. catch(Exception e)
  191. {
  192. return LuaDLL.toluaL_exception(L, e);
  193. }
  194. }
  195. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  196. static int GetBlendShapeFrameWeight(IntPtr L)
  197. {
  198. try
  199. {
  200. ToLua.CheckArgsCount(L, 3);
  201. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  202. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  203. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  204. float o = obj.GetBlendShapeFrameWeight(arg0, arg1);
  205. LuaDLL.lua_pushnumber(L, o);
  206. return 1;
  207. }
  208. catch(Exception e)
  209. {
  210. return LuaDLL.toluaL_exception(L, e);
  211. }
  212. }
  213. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  214. static int GetBlendShapeFrameVertices(IntPtr L)
  215. {
  216. try
  217. {
  218. ToLua.CheckArgsCount(L, 6);
  219. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  220. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  221. int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
  222. UnityEngine.Vector3[] arg2 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 4);
  223. UnityEngine.Vector3[] arg3 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 5);
  224. UnityEngine.Vector3[] arg4 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 6);
  225. obj.GetBlendShapeFrameVertices(arg0, arg1, arg2, arg3, arg4);
  226. return 0;
  227. }
  228. catch(Exception e)
  229. {
  230. return LuaDLL.toluaL_exception(L, e);
  231. }
  232. }
  233. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  234. static int AddBlendShapeFrame(IntPtr L)
  235. {
  236. try
  237. {
  238. ToLua.CheckArgsCount(L, 6);
  239. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  240. string arg0 = ToLua.CheckString(L, 2);
  241. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  242. UnityEngine.Vector3[] arg2 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 4);
  243. UnityEngine.Vector3[] arg3 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 5);
  244. UnityEngine.Vector3[] arg4 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 6);
  245. obj.AddBlendShapeFrame(arg0, arg1, arg2, arg3, arg4);
  246. return 0;
  247. }
  248. catch(Exception e)
  249. {
  250. return LuaDLL.toluaL_exception(L, e);
  251. }
  252. }
  253. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  254. static int GetUVDistributionMetric(IntPtr L)
  255. {
  256. try
  257. {
  258. ToLua.CheckArgsCount(L, 2);
  259. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  260. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  261. float o = obj.GetUVDistributionMetric(arg0);
  262. LuaDLL.lua_pushnumber(L, o);
  263. return 1;
  264. }
  265. catch(Exception e)
  266. {
  267. return LuaDLL.toluaL_exception(L, e);
  268. }
  269. }
  270. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  271. static int GetVertices(IntPtr L)
  272. {
  273. try
  274. {
  275. ToLua.CheckArgsCount(L, 2);
  276. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  277. System.Collections.Generic.List<UnityEngine.Vector3> arg0 = (System.Collections.Generic.List<UnityEngine.Vector3>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector3>));
  278. obj.GetVertices(arg0);
  279. return 0;
  280. }
  281. catch(Exception e)
  282. {
  283. return LuaDLL.toluaL_exception(L, e);
  284. }
  285. }
  286. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  287. static int SetVertices(IntPtr L)
  288. {
  289. try
  290. {
  291. ToLua.CheckArgsCount(L, 2);
  292. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  293. System.Collections.Generic.List<UnityEngine.Vector3> arg0 = (System.Collections.Generic.List<UnityEngine.Vector3>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector3>));
  294. obj.SetVertices(arg0);
  295. return 0;
  296. }
  297. catch(Exception e)
  298. {
  299. return LuaDLL.toluaL_exception(L, e);
  300. }
  301. }
  302. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  303. static int GetNormals(IntPtr L)
  304. {
  305. try
  306. {
  307. ToLua.CheckArgsCount(L, 2);
  308. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  309. System.Collections.Generic.List<UnityEngine.Vector3> arg0 = (System.Collections.Generic.List<UnityEngine.Vector3>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector3>));
  310. obj.GetNormals(arg0);
  311. return 0;
  312. }
  313. catch(Exception e)
  314. {
  315. return LuaDLL.toluaL_exception(L, e);
  316. }
  317. }
  318. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  319. static int SetNormals(IntPtr L)
  320. {
  321. try
  322. {
  323. ToLua.CheckArgsCount(L, 2);
  324. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  325. System.Collections.Generic.List<UnityEngine.Vector3> arg0 = (System.Collections.Generic.List<UnityEngine.Vector3>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector3>));
  326. obj.SetNormals(arg0);
  327. return 0;
  328. }
  329. catch(Exception e)
  330. {
  331. return LuaDLL.toluaL_exception(L, e);
  332. }
  333. }
  334. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  335. static int GetTangents(IntPtr L)
  336. {
  337. try
  338. {
  339. ToLua.CheckArgsCount(L, 2);
  340. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  341. System.Collections.Generic.List<UnityEngine.Vector4> arg0 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector4>));
  342. obj.GetTangents(arg0);
  343. return 0;
  344. }
  345. catch(Exception e)
  346. {
  347. return LuaDLL.toluaL_exception(L, e);
  348. }
  349. }
  350. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  351. static int SetTangents(IntPtr L)
  352. {
  353. try
  354. {
  355. ToLua.CheckArgsCount(L, 2);
  356. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  357. System.Collections.Generic.List<UnityEngine.Vector4> arg0 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Vector4>));
  358. obj.SetTangents(arg0);
  359. return 0;
  360. }
  361. catch(Exception e)
  362. {
  363. return LuaDLL.toluaL_exception(L, e);
  364. }
  365. }
  366. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  367. static int GetColors(IntPtr L)
  368. {
  369. try
  370. {
  371. int count = LuaDLL.lua_gettop(L);
  372. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<UnityEngine.Color>)))
  373. {
  374. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  375. System.Collections.Generic.List<UnityEngine.Color> arg0 = (System.Collections.Generic.List<UnityEngine.Color>)ToLua.ToObject(L, 2);
  376. obj.GetColors(arg0);
  377. return 0;
  378. }
  379. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<UnityEngine.Color32>)))
  380. {
  381. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  382. System.Collections.Generic.List<UnityEngine.Color32> arg0 = (System.Collections.Generic.List<UnityEngine.Color32>)ToLua.ToObject(L, 2);
  383. obj.GetColors(arg0);
  384. return 0;
  385. }
  386. else
  387. {
  388. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.GetColors");
  389. }
  390. }
  391. catch(Exception e)
  392. {
  393. return LuaDLL.toluaL_exception(L, e);
  394. }
  395. }
  396. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  397. static int SetColors(IntPtr L)
  398. {
  399. try
  400. {
  401. int count = LuaDLL.lua_gettop(L);
  402. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<UnityEngine.Color>)))
  403. {
  404. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  405. System.Collections.Generic.List<UnityEngine.Color> arg0 = (System.Collections.Generic.List<UnityEngine.Color>)ToLua.ToObject(L, 2);
  406. obj.SetColors(arg0);
  407. return 0;
  408. }
  409. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<UnityEngine.Color32>)))
  410. {
  411. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  412. System.Collections.Generic.List<UnityEngine.Color32> arg0 = (System.Collections.Generic.List<UnityEngine.Color32>)ToLua.ToObject(L, 2);
  413. obj.SetColors(arg0);
  414. return 0;
  415. }
  416. else
  417. {
  418. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.SetColors");
  419. }
  420. }
  421. catch(Exception e)
  422. {
  423. return LuaDLL.toluaL_exception(L, e);
  424. }
  425. }
  426. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  427. static int SetUVs(IntPtr L)
  428. {
  429. try
  430. {
  431. int count = LuaDLL.lua_gettop(L);
  432. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector2>)))
  433. {
  434. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  435. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  436. System.Collections.Generic.List<UnityEngine.Vector2> arg1 = (System.Collections.Generic.List<UnityEngine.Vector2>)ToLua.ToObject(L, 3);
  437. obj.SetUVs(arg0, arg1);
  438. return 0;
  439. }
  440. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector3>)))
  441. {
  442. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  443. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  444. System.Collections.Generic.List<UnityEngine.Vector3> arg1 = (System.Collections.Generic.List<UnityEngine.Vector3>)ToLua.ToObject(L, 3);
  445. obj.SetUVs(arg0, arg1);
  446. return 0;
  447. }
  448. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector4>)))
  449. {
  450. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  451. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  452. System.Collections.Generic.List<UnityEngine.Vector4> arg1 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 3);
  453. obj.SetUVs(arg0, arg1);
  454. return 0;
  455. }
  456. else
  457. {
  458. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.SetUVs");
  459. }
  460. }
  461. catch(Exception e)
  462. {
  463. return LuaDLL.toluaL_exception(L, e);
  464. }
  465. }
  466. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  467. static int GetUVs(IntPtr L)
  468. {
  469. try
  470. {
  471. int count = LuaDLL.lua_gettop(L);
  472. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector2>)))
  473. {
  474. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  475. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  476. System.Collections.Generic.List<UnityEngine.Vector2> arg1 = (System.Collections.Generic.List<UnityEngine.Vector2>)ToLua.ToObject(L, 3);
  477. obj.GetUVs(arg0, arg1);
  478. return 0;
  479. }
  480. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector3>)))
  481. {
  482. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  483. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  484. System.Collections.Generic.List<UnityEngine.Vector3> arg1 = (System.Collections.Generic.List<UnityEngine.Vector3>)ToLua.ToObject(L, 3);
  485. obj.GetUVs(arg0, arg1);
  486. return 0;
  487. }
  488. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(System.Collections.Generic.List<UnityEngine.Vector4>)))
  489. {
  490. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  491. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  492. System.Collections.Generic.List<UnityEngine.Vector4> arg1 = (System.Collections.Generic.List<UnityEngine.Vector4>)ToLua.ToObject(L, 3);
  493. obj.GetUVs(arg0, arg1);
  494. return 0;
  495. }
  496. else
  497. {
  498. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.GetUVs");
  499. }
  500. }
  501. catch(Exception e)
  502. {
  503. return LuaDLL.toluaL_exception(L, e);
  504. }
  505. }
  506. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  507. static int GetTriangles(IntPtr L)
  508. {
  509. try
  510. {
  511. int count = LuaDLL.lua_gettop(L);
  512. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int)))
  513. {
  514. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  515. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  516. int[] o = obj.GetTriangles(arg0);
  517. ToLua.Push(L, o);
  518. return 1;
  519. }
  520. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(bool)))
  521. {
  522. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  523. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  524. bool arg1 = LuaDLL.lua_toboolean(L, 3);
  525. int[] o = obj.GetTriangles(arg0, arg1);
  526. ToLua.Push(L, o);
  527. return 1;
  528. }
  529. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<int>), typeof(int)))
  530. {
  531. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  532. System.Collections.Generic.List<int> arg0 = (System.Collections.Generic.List<int>)ToLua.ToObject(L, 2);
  533. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  534. obj.GetTriangles(arg0, arg1);
  535. return 0;
  536. }
  537. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<int>), typeof(int), typeof(bool)))
  538. {
  539. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  540. System.Collections.Generic.List<int> arg0 = (System.Collections.Generic.List<int>)ToLua.ToObject(L, 2);
  541. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  542. bool arg2 = LuaDLL.lua_toboolean(L, 4);
  543. obj.GetTriangles(arg0, arg1, arg2);
  544. return 0;
  545. }
  546. else
  547. {
  548. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.GetTriangles");
  549. }
  550. }
  551. catch(Exception e)
  552. {
  553. return LuaDLL.toluaL_exception(L, e);
  554. }
  555. }
  556. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  557. static int GetIndices(IntPtr L)
  558. {
  559. try
  560. {
  561. int count = LuaDLL.lua_gettop(L);
  562. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int)))
  563. {
  564. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  565. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  566. int[] o = obj.GetIndices(arg0);
  567. ToLua.Push(L, o);
  568. return 1;
  569. }
  570. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int), typeof(bool)))
  571. {
  572. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  573. int arg0 = (int)LuaDLL.lua_tonumber(L, 2);
  574. bool arg1 = LuaDLL.lua_toboolean(L, 3);
  575. int[] o = obj.GetIndices(arg0, arg1);
  576. ToLua.Push(L, o);
  577. return 1;
  578. }
  579. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<int>), typeof(int)))
  580. {
  581. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  582. System.Collections.Generic.List<int> arg0 = (System.Collections.Generic.List<int>)ToLua.ToObject(L, 2);
  583. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  584. obj.GetIndices(arg0, arg1);
  585. return 0;
  586. }
  587. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<int>), typeof(int), typeof(bool)))
  588. {
  589. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  590. System.Collections.Generic.List<int> arg0 = (System.Collections.Generic.List<int>)ToLua.ToObject(L, 2);
  591. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  592. bool arg2 = LuaDLL.lua_toboolean(L, 4);
  593. obj.GetIndices(arg0, arg1, arg2);
  594. return 0;
  595. }
  596. else
  597. {
  598. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.GetIndices");
  599. }
  600. }
  601. catch(Exception e)
  602. {
  603. return LuaDLL.toluaL_exception(L, e);
  604. }
  605. }
  606. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  607. static int GetIndexStart(IntPtr L)
  608. {
  609. try
  610. {
  611. ToLua.CheckArgsCount(L, 2);
  612. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  613. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  614. uint o = obj.GetIndexStart(arg0);
  615. LuaDLL.lua_pushnumber(L, o);
  616. return 1;
  617. }
  618. catch(Exception e)
  619. {
  620. return LuaDLL.toluaL_exception(L, e);
  621. }
  622. }
  623. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  624. static int GetIndexCount(IntPtr L)
  625. {
  626. try
  627. {
  628. ToLua.CheckArgsCount(L, 2);
  629. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  630. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  631. uint o = obj.GetIndexCount(arg0);
  632. LuaDLL.lua_pushnumber(L, o);
  633. return 1;
  634. }
  635. catch(Exception e)
  636. {
  637. return LuaDLL.toluaL_exception(L, e);
  638. }
  639. }
  640. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  641. static int GetBaseVertex(IntPtr L)
  642. {
  643. try
  644. {
  645. ToLua.CheckArgsCount(L, 2);
  646. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  647. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  648. uint o = obj.GetBaseVertex(arg0);
  649. LuaDLL.lua_pushnumber(L, o);
  650. return 1;
  651. }
  652. catch(Exception e)
  653. {
  654. return LuaDLL.toluaL_exception(L, e);
  655. }
  656. }
  657. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  658. static int SetTriangles(IntPtr L)
  659. {
  660. try
  661. {
  662. int count = LuaDLL.lua_gettop(L);
  663. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int[]), typeof(int)))
  664. {
  665. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  666. int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
  667. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  668. obj.SetTriangles(arg0, arg1);
  669. return 0;
  670. }
  671. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<int>), typeof(int)))
  672. {
  673. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  674. System.Collections.Generic.List<int> arg0 = (System.Collections.Generic.List<int>)ToLua.ToObject(L, 2);
  675. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  676. obj.SetTriangles(arg0, arg1);
  677. return 0;
  678. }
  679. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int[]), typeof(int), typeof(bool)))
  680. {
  681. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  682. int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
  683. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  684. bool arg2 = LuaDLL.lua_toboolean(L, 4);
  685. obj.SetTriangles(arg0, arg1, arg2);
  686. return 0;
  687. }
  688. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<int>), typeof(int), typeof(bool)))
  689. {
  690. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  691. System.Collections.Generic.List<int> arg0 = (System.Collections.Generic.List<int>)ToLua.ToObject(L, 2);
  692. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  693. bool arg2 = LuaDLL.lua_toboolean(L, 4);
  694. obj.SetTriangles(arg0, arg1, arg2);
  695. return 0;
  696. }
  697. else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int[]), typeof(int), typeof(bool), typeof(int)))
  698. {
  699. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  700. int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
  701. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  702. bool arg2 = LuaDLL.lua_toboolean(L, 4);
  703. int arg3 = (int)LuaDLL.lua_tonumber(L, 5);
  704. obj.SetTriangles(arg0, arg1, arg2, arg3);
  705. return 0;
  706. }
  707. else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(System.Collections.Generic.List<int>), typeof(int), typeof(bool), typeof(int)))
  708. {
  709. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  710. System.Collections.Generic.List<int> arg0 = (System.Collections.Generic.List<int>)ToLua.ToObject(L, 2);
  711. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  712. bool arg2 = LuaDLL.lua_toboolean(L, 4);
  713. int arg3 = (int)LuaDLL.lua_tonumber(L, 5);
  714. obj.SetTriangles(arg0, arg1, arg2, arg3);
  715. return 0;
  716. }
  717. else
  718. {
  719. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.SetTriangles");
  720. }
  721. }
  722. catch(Exception e)
  723. {
  724. return LuaDLL.toluaL_exception(L, e);
  725. }
  726. }
  727. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  728. static int SetIndices(IntPtr L)
  729. {
  730. try
  731. {
  732. int count = LuaDLL.lua_gettop(L);
  733. if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int[]), typeof(UnityEngine.MeshTopology), typeof(int)))
  734. {
  735. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  736. int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
  737. UnityEngine.MeshTopology arg1 = (UnityEngine.MeshTopology)ToLua.ToObject(L, 3);
  738. int arg2 = (int)LuaDLL.lua_tonumber(L, 4);
  739. obj.SetIndices(arg0, arg1, arg2);
  740. return 0;
  741. }
  742. else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int[]), typeof(UnityEngine.MeshTopology), typeof(int), typeof(bool)))
  743. {
  744. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  745. int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
  746. UnityEngine.MeshTopology arg1 = (UnityEngine.MeshTopology)ToLua.ToObject(L, 3);
  747. int arg2 = (int)LuaDLL.lua_tonumber(L, 4);
  748. bool arg3 = LuaDLL.lua_toboolean(L, 5);
  749. obj.SetIndices(arg0, arg1, arg2, arg3);
  750. return 0;
  751. }
  752. else if (count == 6 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(int[]), typeof(UnityEngine.MeshTopology), typeof(int), typeof(bool), typeof(int)))
  753. {
  754. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  755. int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
  756. UnityEngine.MeshTopology arg1 = (UnityEngine.MeshTopology)ToLua.ToObject(L, 3);
  757. int arg2 = (int)LuaDLL.lua_tonumber(L, 4);
  758. bool arg3 = LuaDLL.lua_toboolean(L, 5);
  759. int arg4 = (int)LuaDLL.lua_tonumber(L, 6);
  760. obj.SetIndices(arg0, arg1, arg2, arg3, arg4);
  761. return 0;
  762. }
  763. else
  764. {
  765. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.SetIndices");
  766. }
  767. }
  768. catch(Exception e)
  769. {
  770. return LuaDLL.toluaL_exception(L, e);
  771. }
  772. }
  773. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  774. static int GetBindposes(IntPtr L)
  775. {
  776. try
  777. {
  778. ToLua.CheckArgsCount(L, 2);
  779. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  780. System.Collections.Generic.List<UnityEngine.Matrix4x4> arg0 = (System.Collections.Generic.List<UnityEngine.Matrix4x4>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Matrix4x4>));
  781. obj.GetBindposes(arg0);
  782. return 0;
  783. }
  784. catch(Exception e)
  785. {
  786. return LuaDLL.toluaL_exception(L, e);
  787. }
  788. }
  789. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  790. static int GetBoneWeights(IntPtr L)
  791. {
  792. try
  793. {
  794. ToLua.CheckArgsCount(L, 2);
  795. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  796. System.Collections.Generic.List<UnityEngine.BoneWeight> arg0 = (System.Collections.Generic.List<UnityEngine.BoneWeight>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.BoneWeight>));
  797. obj.GetBoneWeights(arg0);
  798. return 0;
  799. }
  800. catch(Exception e)
  801. {
  802. return LuaDLL.toluaL_exception(L, e);
  803. }
  804. }
  805. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  806. static int Clear(IntPtr L)
  807. {
  808. try
  809. {
  810. int count = LuaDLL.lua_gettop(L);
  811. if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh)))
  812. {
  813. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  814. obj.Clear();
  815. return 0;
  816. }
  817. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(bool)))
  818. {
  819. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  820. bool arg0 = LuaDLL.lua_toboolean(L, 2);
  821. obj.Clear(arg0);
  822. return 0;
  823. }
  824. else
  825. {
  826. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.Clear");
  827. }
  828. }
  829. catch(Exception e)
  830. {
  831. return LuaDLL.toluaL_exception(L, e);
  832. }
  833. }
  834. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  835. static int RecalculateBounds(IntPtr L)
  836. {
  837. try
  838. {
  839. ToLua.CheckArgsCount(L, 1);
  840. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  841. obj.RecalculateBounds();
  842. return 0;
  843. }
  844. catch(Exception e)
  845. {
  846. return LuaDLL.toluaL_exception(L, e);
  847. }
  848. }
  849. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  850. static int RecalculateNormals(IntPtr L)
  851. {
  852. try
  853. {
  854. ToLua.CheckArgsCount(L, 1);
  855. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  856. obj.RecalculateNormals();
  857. return 0;
  858. }
  859. catch(Exception e)
  860. {
  861. return LuaDLL.toluaL_exception(L, e);
  862. }
  863. }
  864. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  865. static int RecalculateTangents(IntPtr L)
  866. {
  867. try
  868. {
  869. ToLua.CheckArgsCount(L, 1);
  870. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  871. obj.RecalculateTangents();
  872. return 0;
  873. }
  874. catch(Exception e)
  875. {
  876. return LuaDLL.toluaL_exception(L, e);
  877. }
  878. }
  879. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  880. static int MarkDynamic(IntPtr L)
  881. {
  882. try
  883. {
  884. ToLua.CheckArgsCount(L, 1);
  885. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  886. obj.MarkDynamic();
  887. return 0;
  888. }
  889. catch(Exception e)
  890. {
  891. return LuaDLL.toluaL_exception(L, e);
  892. }
  893. }
  894. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  895. static int UploadMeshData(IntPtr L)
  896. {
  897. try
  898. {
  899. ToLua.CheckArgsCount(L, 2);
  900. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  901. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  902. obj.UploadMeshData(arg0);
  903. return 0;
  904. }
  905. catch(Exception e)
  906. {
  907. return LuaDLL.toluaL_exception(L, e);
  908. }
  909. }
  910. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  911. static int GetTopology(IntPtr L)
  912. {
  913. try
  914. {
  915. ToLua.CheckArgsCount(L, 2);
  916. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.CheckObject(L, 1, typeof(UnityEngine.Mesh));
  917. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  918. UnityEngine.MeshTopology o = obj.GetTopology(arg0);
  919. ToLua.Push(L, o);
  920. return 1;
  921. }
  922. catch(Exception e)
  923. {
  924. return LuaDLL.toluaL_exception(L, e);
  925. }
  926. }
  927. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  928. static int CombineMeshes(IntPtr L)
  929. {
  930. try
  931. {
  932. int count = LuaDLL.lua_gettop(L);
  933. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(UnityEngine.CombineInstance[])))
  934. {
  935. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  936. UnityEngine.CombineInstance[] arg0 = ToLua.CheckObjectArray<UnityEngine.CombineInstance>(L, 2);
  937. obj.CombineMeshes(arg0);
  938. return 0;
  939. }
  940. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(UnityEngine.CombineInstance[]), typeof(bool)))
  941. {
  942. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  943. UnityEngine.CombineInstance[] arg0 = ToLua.CheckObjectArray<UnityEngine.CombineInstance>(L, 2);
  944. bool arg1 = LuaDLL.lua_toboolean(L, 3);
  945. obj.CombineMeshes(arg0, arg1);
  946. return 0;
  947. }
  948. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(UnityEngine.CombineInstance[]), typeof(bool), typeof(bool)))
  949. {
  950. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  951. UnityEngine.CombineInstance[] arg0 = ToLua.CheckObjectArray<UnityEngine.CombineInstance>(L, 2);
  952. bool arg1 = LuaDLL.lua_toboolean(L, 3);
  953. bool arg2 = LuaDLL.lua_toboolean(L, 4);
  954. obj.CombineMeshes(arg0, arg1, arg2);
  955. return 0;
  956. }
  957. else if (count == 5 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Mesh), typeof(UnityEngine.CombineInstance[]), typeof(bool), typeof(bool), typeof(bool)))
  958. {
  959. UnityEngine.Mesh obj = (UnityEngine.Mesh)ToLua.ToObject(L, 1);
  960. UnityEngine.CombineInstance[] arg0 = ToLua.CheckObjectArray<UnityEngine.CombineInstance>(L, 2);
  961. bool arg1 = LuaDLL.lua_toboolean(L, 3);
  962. bool arg2 = LuaDLL.lua_toboolean(L, 4);
  963. bool arg3 = LuaDLL.lua_toboolean(L, 5);
  964. obj.CombineMeshes(arg0, arg1, arg2, arg3);
  965. return 0;
  966. }
  967. else
  968. {
  969. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Mesh.CombineMeshes");
  970. }
  971. }
  972. catch(Exception e)
  973. {
  974. return LuaDLL.toluaL_exception(L, e);
  975. }
  976. }
  977. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  978. static int op_Equality(IntPtr L)
  979. {
  980. try
  981. {
  982. ToLua.CheckArgsCount(L, 2);
  983. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  984. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  985. bool o = arg0 == arg1;
  986. LuaDLL.lua_pushboolean(L, o);
  987. return 1;
  988. }
  989. catch(Exception e)
  990. {
  991. return LuaDLL.toluaL_exception(L, e);
  992. }
  993. }
  994. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  995. static int get_indexFormat(IntPtr L)
  996. {
  997. object o = null;
  998. try
  999. {
  1000. o = ToLua.ToObject(L, 1);
  1001. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1002. UnityEngine.Rendering.IndexFormat ret = obj.indexFormat;
  1003. ToLua.Push(L, ret);
  1004. return 1;
  1005. }
  1006. catch(Exception e)
  1007. {
  1008. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index indexFormat on a nil value" : e.Message);
  1009. }
  1010. }
  1011. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1012. static int get_vertexBufferCount(IntPtr L)
  1013. {
  1014. object o = null;
  1015. try
  1016. {
  1017. o = ToLua.ToObject(L, 1);
  1018. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1019. int ret = obj.vertexBufferCount;
  1020. LuaDLL.lua_pushinteger(L, ret);
  1021. return 1;
  1022. }
  1023. catch(Exception e)
  1024. {
  1025. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index vertexBufferCount on a nil value" : e.Message);
  1026. }
  1027. }
  1028. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1029. static int get_blendShapeCount(IntPtr L)
  1030. {
  1031. object o = null;
  1032. try
  1033. {
  1034. o = ToLua.ToObject(L, 1);
  1035. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1036. int ret = obj.blendShapeCount;
  1037. LuaDLL.lua_pushinteger(L, ret);
  1038. return 1;
  1039. }
  1040. catch(Exception e)
  1041. {
  1042. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index blendShapeCount on a nil value" : e.Message);
  1043. }
  1044. }
  1045. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1046. static int get_boneWeights(IntPtr L)
  1047. {
  1048. object o = null;
  1049. try
  1050. {
  1051. o = ToLua.ToObject(L, 1);
  1052. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1053. UnityEngine.BoneWeight[] ret = obj.boneWeights;
  1054. ToLua.Push(L, ret);
  1055. return 1;
  1056. }
  1057. catch(Exception e)
  1058. {
  1059. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index boneWeights on a nil value" : e.Message);
  1060. }
  1061. }
  1062. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1063. static int get_bindposes(IntPtr L)
  1064. {
  1065. object o = null;
  1066. try
  1067. {
  1068. o = ToLua.ToObject(L, 1);
  1069. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1070. UnityEngine.Matrix4x4[] ret = obj.bindposes;
  1071. ToLua.Push(L, ret);
  1072. return 1;
  1073. }
  1074. catch(Exception e)
  1075. {
  1076. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bindposes on a nil value" : e.Message);
  1077. }
  1078. }
  1079. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1080. static int get_isReadable(IntPtr L)
  1081. {
  1082. object o = null;
  1083. try
  1084. {
  1085. o = ToLua.ToObject(L, 1);
  1086. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1087. bool ret = obj.isReadable;
  1088. LuaDLL.lua_pushboolean(L, ret);
  1089. return 1;
  1090. }
  1091. catch(Exception e)
  1092. {
  1093. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isReadable on a nil value" : e.Message);
  1094. }
  1095. }
  1096. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1097. static int get_vertexCount(IntPtr L)
  1098. {
  1099. object o = null;
  1100. try
  1101. {
  1102. o = ToLua.ToObject(L, 1);
  1103. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1104. int ret = obj.vertexCount;
  1105. LuaDLL.lua_pushinteger(L, ret);
  1106. return 1;
  1107. }
  1108. catch(Exception e)
  1109. {
  1110. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index vertexCount on a nil value" : e.Message);
  1111. }
  1112. }
  1113. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1114. static int get_subMeshCount(IntPtr L)
  1115. {
  1116. object o = null;
  1117. try
  1118. {
  1119. o = ToLua.ToObject(L, 1);
  1120. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1121. int ret = obj.subMeshCount;
  1122. LuaDLL.lua_pushinteger(L, ret);
  1123. return 1;
  1124. }
  1125. catch(Exception e)
  1126. {
  1127. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index subMeshCount on a nil value" : e.Message);
  1128. }
  1129. }
  1130. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1131. static int get_bounds(IntPtr L)
  1132. {
  1133. object o = null;
  1134. try
  1135. {
  1136. o = ToLua.ToObject(L, 1);
  1137. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1138. UnityEngine.Bounds ret = obj.bounds;
  1139. ToLua.Push(L, ret);
  1140. return 1;
  1141. }
  1142. catch(Exception e)
  1143. {
  1144. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bounds on a nil value" : e.Message);
  1145. }
  1146. }
  1147. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1148. static int get_vertices(IntPtr L)
  1149. {
  1150. object o = null;
  1151. try
  1152. {
  1153. o = ToLua.ToObject(L, 1);
  1154. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1155. UnityEngine.Vector3[] ret = obj.vertices;
  1156. ToLua.Push(L, ret);
  1157. return 1;
  1158. }
  1159. catch(Exception e)
  1160. {
  1161. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index vertices on a nil value" : e.Message);
  1162. }
  1163. }
  1164. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1165. static int get_normals(IntPtr L)
  1166. {
  1167. object o = null;
  1168. try
  1169. {
  1170. o = ToLua.ToObject(L, 1);
  1171. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1172. UnityEngine.Vector3[] ret = obj.normals;
  1173. ToLua.Push(L, ret);
  1174. return 1;
  1175. }
  1176. catch(Exception e)
  1177. {
  1178. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index normals on a nil value" : e.Message);
  1179. }
  1180. }
  1181. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1182. static int get_tangents(IntPtr L)
  1183. {
  1184. object o = null;
  1185. try
  1186. {
  1187. o = ToLua.ToObject(L, 1);
  1188. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1189. UnityEngine.Vector4[] ret = obj.tangents;
  1190. ToLua.Push(L, ret);
  1191. return 1;
  1192. }
  1193. catch(Exception e)
  1194. {
  1195. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index tangents on a nil value" : e.Message);
  1196. }
  1197. }
  1198. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1199. static int get_uv(IntPtr L)
  1200. {
  1201. object o = null;
  1202. try
  1203. {
  1204. o = ToLua.ToObject(L, 1);
  1205. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1206. UnityEngine.Vector2[] ret = obj.uv;
  1207. ToLua.Push(L, ret);
  1208. return 1;
  1209. }
  1210. catch(Exception e)
  1211. {
  1212. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv on a nil value" : e.Message);
  1213. }
  1214. }
  1215. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1216. static int get_uv2(IntPtr L)
  1217. {
  1218. object o = null;
  1219. try
  1220. {
  1221. o = ToLua.ToObject(L, 1);
  1222. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1223. UnityEngine.Vector2[] ret = obj.uv2;
  1224. ToLua.Push(L, ret);
  1225. return 1;
  1226. }
  1227. catch(Exception e)
  1228. {
  1229. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv2 on a nil value" : e.Message);
  1230. }
  1231. }
  1232. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1233. static int get_uv3(IntPtr L)
  1234. {
  1235. object o = null;
  1236. try
  1237. {
  1238. o = ToLua.ToObject(L, 1);
  1239. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1240. UnityEngine.Vector2[] ret = obj.uv3;
  1241. ToLua.Push(L, ret);
  1242. return 1;
  1243. }
  1244. catch(Exception e)
  1245. {
  1246. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv3 on a nil value" : e.Message);
  1247. }
  1248. }
  1249. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1250. static int get_uv4(IntPtr L)
  1251. {
  1252. object o = null;
  1253. try
  1254. {
  1255. o = ToLua.ToObject(L, 1);
  1256. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1257. UnityEngine.Vector2[] ret = obj.uv4;
  1258. ToLua.Push(L, ret);
  1259. return 1;
  1260. }
  1261. catch(Exception e)
  1262. {
  1263. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv4 on a nil value" : e.Message);
  1264. }
  1265. }
  1266. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1267. static int get_uv5(IntPtr L)
  1268. {
  1269. object o = null;
  1270. try
  1271. {
  1272. o = ToLua.ToObject(L, 1);
  1273. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1274. UnityEngine.Vector2[] ret = obj.uv5;
  1275. ToLua.Push(L, ret);
  1276. return 1;
  1277. }
  1278. catch(Exception e)
  1279. {
  1280. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv5 on a nil value" : e.Message);
  1281. }
  1282. }
  1283. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1284. static int get_uv6(IntPtr L)
  1285. {
  1286. object o = null;
  1287. try
  1288. {
  1289. o = ToLua.ToObject(L, 1);
  1290. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1291. UnityEngine.Vector2[] ret = obj.uv6;
  1292. ToLua.Push(L, ret);
  1293. return 1;
  1294. }
  1295. catch(Exception e)
  1296. {
  1297. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv6 on a nil value" : e.Message);
  1298. }
  1299. }
  1300. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1301. static int get_uv7(IntPtr L)
  1302. {
  1303. object o = null;
  1304. try
  1305. {
  1306. o = ToLua.ToObject(L, 1);
  1307. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1308. UnityEngine.Vector2[] ret = obj.uv7;
  1309. ToLua.Push(L, ret);
  1310. return 1;
  1311. }
  1312. catch(Exception e)
  1313. {
  1314. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv7 on a nil value" : e.Message);
  1315. }
  1316. }
  1317. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1318. static int get_uv8(IntPtr L)
  1319. {
  1320. object o = null;
  1321. try
  1322. {
  1323. o = ToLua.ToObject(L, 1);
  1324. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1325. UnityEngine.Vector2[] ret = obj.uv8;
  1326. ToLua.Push(L, ret);
  1327. return 1;
  1328. }
  1329. catch(Exception e)
  1330. {
  1331. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv8 on a nil value" : e.Message);
  1332. }
  1333. }
  1334. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1335. static int get_colors(IntPtr L)
  1336. {
  1337. object o = null;
  1338. try
  1339. {
  1340. o = ToLua.ToObject(L, 1);
  1341. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1342. UnityEngine.Color[] ret = obj.colors;
  1343. ToLua.Push(L, ret);
  1344. return 1;
  1345. }
  1346. catch(Exception e)
  1347. {
  1348. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index colors on a nil value" : e.Message);
  1349. }
  1350. }
  1351. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1352. static int get_colors32(IntPtr L)
  1353. {
  1354. object o = null;
  1355. try
  1356. {
  1357. o = ToLua.ToObject(L, 1);
  1358. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1359. UnityEngine.Color32[] ret = obj.colors32;
  1360. ToLua.Push(L, ret);
  1361. return 1;
  1362. }
  1363. catch(Exception e)
  1364. {
  1365. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index colors32 on a nil value" : e.Message);
  1366. }
  1367. }
  1368. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1369. static int get_triangles(IntPtr L)
  1370. {
  1371. object o = null;
  1372. try
  1373. {
  1374. o = ToLua.ToObject(L, 1);
  1375. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1376. int[] ret = obj.triangles;
  1377. ToLua.Push(L, ret);
  1378. return 1;
  1379. }
  1380. catch(Exception e)
  1381. {
  1382. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index triangles on a nil value" : e.Message);
  1383. }
  1384. }
  1385. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1386. static int set_indexFormat(IntPtr L)
  1387. {
  1388. object o = null;
  1389. try
  1390. {
  1391. o = ToLua.ToObject(L, 1);
  1392. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1393. UnityEngine.Rendering.IndexFormat arg0 = (UnityEngine.Rendering.IndexFormat)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.IndexFormat));
  1394. obj.indexFormat = arg0;
  1395. return 0;
  1396. }
  1397. catch(Exception e)
  1398. {
  1399. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index indexFormat on a nil value" : e.Message);
  1400. }
  1401. }
  1402. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1403. static int set_boneWeights(IntPtr L)
  1404. {
  1405. object o = null;
  1406. try
  1407. {
  1408. o = ToLua.ToObject(L, 1);
  1409. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1410. UnityEngine.BoneWeight[] arg0 = ToLua.CheckObjectArray<UnityEngine.BoneWeight>(L, 2);
  1411. obj.boneWeights = arg0;
  1412. return 0;
  1413. }
  1414. catch(Exception e)
  1415. {
  1416. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index boneWeights on a nil value" : e.Message);
  1417. }
  1418. }
  1419. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1420. static int set_bindposes(IntPtr L)
  1421. {
  1422. object o = null;
  1423. try
  1424. {
  1425. o = ToLua.ToObject(L, 1);
  1426. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1427. UnityEngine.Matrix4x4[] arg0 = ToLua.CheckObjectArray<UnityEngine.Matrix4x4>(L, 2);
  1428. obj.bindposes = arg0;
  1429. return 0;
  1430. }
  1431. catch(Exception e)
  1432. {
  1433. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bindposes on a nil value" : e.Message);
  1434. }
  1435. }
  1436. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1437. static int set_subMeshCount(IntPtr L)
  1438. {
  1439. object o = null;
  1440. try
  1441. {
  1442. o = ToLua.ToObject(L, 1);
  1443. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1444. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1445. obj.subMeshCount = arg0;
  1446. return 0;
  1447. }
  1448. catch(Exception e)
  1449. {
  1450. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index subMeshCount on a nil value" : e.Message);
  1451. }
  1452. }
  1453. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1454. static int set_bounds(IntPtr L)
  1455. {
  1456. object o = null;
  1457. try
  1458. {
  1459. o = ToLua.ToObject(L, 1);
  1460. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1461. UnityEngine.Bounds arg0 = ToLua.ToBounds(L, 2);
  1462. obj.bounds = arg0;
  1463. return 0;
  1464. }
  1465. catch(Exception e)
  1466. {
  1467. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bounds on a nil value" : e.Message);
  1468. }
  1469. }
  1470. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1471. static int set_vertices(IntPtr L)
  1472. {
  1473. object o = null;
  1474. try
  1475. {
  1476. o = ToLua.ToObject(L, 1);
  1477. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1478. UnityEngine.Vector3[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 2);
  1479. obj.vertices = arg0;
  1480. return 0;
  1481. }
  1482. catch(Exception e)
  1483. {
  1484. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index vertices on a nil value" : e.Message);
  1485. }
  1486. }
  1487. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1488. static int set_normals(IntPtr L)
  1489. {
  1490. object o = null;
  1491. try
  1492. {
  1493. o = ToLua.ToObject(L, 1);
  1494. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1495. UnityEngine.Vector3[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 2);
  1496. obj.normals = arg0;
  1497. return 0;
  1498. }
  1499. catch(Exception e)
  1500. {
  1501. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index normals on a nil value" : e.Message);
  1502. }
  1503. }
  1504. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1505. static int set_tangents(IntPtr L)
  1506. {
  1507. object o = null;
  1508. try
  1509. {
  1510. o = ToLua.ToObject(L, 1);
  1511. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1512. UnityEngine.Vector4[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector4>(L, 2);
  1513. obj.tangents = arg0;
  1514. return 0;
  1515. }
  1516. catch(Exception e)
  1517. {
  1518. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index tangents on a nil value" : e.Message);
  1519. }
  1520. }
  1521. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1522. static int set_uv(IntPtr L)
  1523. {
  1524. object o = null;
  1525. try
  1526. {
  1527. o = ToLua.ToObject(L, 1);
  1528. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1529. UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
  1530. obj.uv = arg0;
  1531. return 0;
  1532. }
  1533. catch(Exception e)
  1534. {
  1535. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv on a nil value" : e.Message);
  1536. }
  1537. }
  1538. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1539. static int set_uv2(IntPtr L)
  1540. {
  1541. object o = null;
  1542. try
  1543. {
  1544. o = ToLua.ToObject(L, 1);
  1545. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1546. UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
  1547. obj.uv2 = arg0;
  1548. return 0;
  1549. }
  1550. catch(Exception e)
  1551. {
  1552. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv2 on a nil value" : e.Message);
  1553. }
  1554. }
  1555. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1556. static int set_uv3(IntPtr L)
  1557. {
  1558. object o = null;
  1559. try
  1560. {
  1561. o = ToLua.ToObject(L, 1);
  1562. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1563. UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
  1564. obj.uv3 = arg0;
  1565. return 0;
  1566. }
  1567. catch(Exception e)
  1568. {
  1569. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv3 on a nil value" : e.Message);
  1570. }
  1571. }
  1572. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1573. static int set_uv4(IntPtr L)
  1574. {
  1575. object o = null;
  1576. try
  1577. {
  1578. o = ToLua.ToObject(L, 1);
  1579. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1580. UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
  1581. obj.uv4 = arg0;
  1582. return 0;
  1583. }
  1584. catch(Exception e)
  1585. {
  1586. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv4 on a nil value" : e.Message);
  1587. }
  1588. }
  1589. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1590. static int set_uv5(IntPtr L)
  1591. {
  1592. object o = null;
  1593. try
  1594. {
  1595. o = ToLua.ToObject(L, 1);
  1596. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1597. UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
  1598. obj.uv5 = arg0;
  1599. return 0;
  1600. }
  1601. catch(Exception e)
  1602. {
  1603. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv5 on a nil value" : e.Message);
  1604. }
  1605. }
  1606. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1607. static int set_uv6(IntPtr L)
  1608. {
  1609. object o = null;
  1610. try
  1611. {
  1612. o = ToLua.ToObject(L, 1);
  1613. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1614. UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
  1615. obj.uv6 = arg0;
  1616. return 0;
  1617. }
  1618. catch(Exception e)
  1619. {
  1620. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv6 on a nil value" : e.Message);
  1621. }
  1622. }
  1623. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1624. static int set_uv7(IntPtr L)
  1625. {
  1626. object o = null;
  1627. try
  1628. {
  1629. o = ToLua.ToObject(L, 1);
  1630. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1631. UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
  1632. obj.uv7 = arg0;
  1633. return 0;
  1634. }
  1635. catch(Exception e)
  1636. {
  1637. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv7 on a nil value" : e.Message);
  1638. }
  1639. }
  1640. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1641. static int set_uv8(IntPtr L)
  1642. {
  1643. object o = null;
  1644. try
  1645. {
  1646. o = ToLua.ToObject(L, 1);
  1647. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1648. UnityEngine.Vector2[] arg0 = ToLua.CheckObjectArray<UnityEngine.Vector2>(L, 2);
  1649. obj.uv8 = arg0;
  1650. return 0;
  1651. }
  1652. catch(Exception e)
  1653. {
  1654. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index uv8 on a nil value" : e.Message);
  1655. }
  1656. }
  1657. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1658. static int set_colors(IntPtr L)
  1659. {
  1660. object o = null;
  1661. try
  1662. {
  1663. o = ToLua.ToObject(L, 1);
  1664. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1665. UnityEngine.Color[] arg0 = ToLua.CheckObjectArray<UnityEngine.Color>(L, 2);
  1666. obj.colors = arg0;
  1667. return 0;
  1668. }
  1669. catch(Exception e)
  1670. {
  1671. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index colors on a nil value" : e.Message);
  1672. }
  1673. }
  1674. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1675. static int set_colors32(IntPtr L)
  1676. {
  1677. object o = null;
  1678. try
  1679. {
  1680. o = ToLua.ToObject(L, 1);
  1681. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1682. UnityEngine.Color32[] arg0 = ToLua.CheckObjectArray<UnityEngine.Color32>(L, 2);
  1683. obj.colors32 = arg0;
  1684. return 0;
  1685. }
  1686. catch(Exception e)
  1687. {
  1688. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index colors32 on a nil value" : e.Message);
  1689. }
  1690. }
  1691. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1692. static int set_triangles(IntPtr L)
  1693. {
  1694. object o = null;
  1695. try
  1696. {
  1697. o = ToLua.ToObject(L, 1);
  1698. UnityEngine.Mesh obj = (UnityEngine.Mesh)o;
  1699. int[] arg0 = ToLua.CheckNumberArray<int>(L, 2);
  1700. obj.triangles = arg0;
  1701. return 0;
  1702. }
  1703. catch(Exception e)
  1704. {
  1705. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index triangles on a nil value" : e.Message);
  1706. }
  1707. }
  1708. }