源战役客户端
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.

1825 lines
55 KiB

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