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

1156 lines
31 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_RendererWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.Renderer), typeof(UnityEngine.Component));
  9. L.RegFunction("HasPropertyBlock", HasPropertyBlock);
  10. L.RegFunction("SetPropertyBlock", SetPropertyBlock);
  11. L.RegFunction("GetPropertyBlock", GetPropertyBlock);
  12. L.RegFunction("GetMaterials", GetMaterials);
  13. L.RegFunction("GetSharedMaterials", GetSharedMaterials);
  14. L.RegFunction("GetClosestReflectionProbes", GetClosestReflectionProbes);
  15. L.RegFunction("New", _CreateUnityEngine_Renderer);
  16. L.RegFunction("__eq", op_Equality);
  17. L.RegFunction("__tostring", ToLua.op_ToString);
  18. L.RegVar("bounds", get_bounds, null);
  19. L.RegVar("enabled", get_enabled, set_enabled);
  20. L.RegVar("isVisible", get_isVisible, null);
  21. L.RegVar("shadowCastingMode", get_shadowCastingMode, set_shadowCastingMode);
  22. L.RegVar("receiveShadows", get_receiveShadows, set_receiveShadows);
  23. L.RegVar("motionVectorGenerationMode", get_motionVectorGenerationMode, set_motionVectorGenerationMode);
  24. L.RegVar("lightProbeUsage", get_lightProbeUsage, set_lightProbeUsage);
  25. L.RegVar("reflectionProbeUsage", get_reflectionProbeUsage, set_reflectionProbeUsage);
  26. L.RegVar("renderingLayerMask", get_renderingLayerMask, set_renderingLayerMask);
  27. L.RegVar("rendererPriority", get_rendererPriority, set_rendererPriority);
  28. L.RegVar("sortingLayerName", get_sortingLayerName, set_sortingLayerName);
  29. L.RegVar("sortingLayerID", get_sortingLayerID, set_sortingLayerID);
  30. L.RegVar("sortingOrder", get_sortingOrder, set_sortingOrder);
  31. L.RegVar("allowOcclusionWhenDynamic", get_allowOcclusionWhenDynamic, set_allowOcclusionWhenDynamic);
  32. L.RegVar("isPartOfStaticBatch", get_isPartOfStaticBatch, null);
  33. L.RegVar("worldToLocalMatrix", get_worldToLocalMatrix, null);
  34. L.RegVar("localToWorldMatrix", get_localToWorldMatrix, null);
  35. L.RegVar("lightProbeProxyVolumeOverride", get_lightProbeProxyVolumeOverride, set_lightProbeProxyVolumeOverride);
  36. L.RegVar("probeAnchor", get_probeAnchor, set_probeAnchor);
  37. L.RegVar("lightmapIndex", get_lightmapIndex, set_lightmapIndex);
  38. L.RegVar("realtimeLightmapIndex", get_realtimeLightmapIndex, set_realtimeLightmapIndex);
  39. L.RegVar("lightmapScaleOffset", get_lightmapScaleOffset, set_lightmapScaleOffset);
  40. L.RegVar("realtimeLightmapScaleOffset", get_realtimeLightmapScaleOffset, set_realtimeLightmapScaleOffset);
  41. L.RegVar("materials", get_materials, set_materials);
  42. L.RegVar("material", get_material, set_material);
  43. L.RegVar("sharedMaterial", get_sharedMaterial, set_sharedMaterial);
  44. L.RegVar("sharedMaterials", get_sharedMaterials, set_sharedMaterials);
  45. L.EndClass();
  46. }
  47. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  48. static int _CreateUnityEngine_Renderer(IntPtr L)
  49. {
  50. try
  51. {
  52. int count = LuaDLL.lua_gettop(L);
  53. if (count == 0)
  54. {
  55. UnityEngine.Renderer obj = new UnityEngine.Renderer();
  56. ToLua.Push(L, obj);
  57. return 1;
  58. }
  59. else
  60. {
  61. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Renderer.New");
  62. }
  63. }
  64. catch(Exception e)
  65. {
  66. return LuaDLL.toluaL_exception(L, e);
  67. }
  68. }
  69. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  70. static int HasPropertyBlock(IntPtr L)
  71. {
  72. try
  73. {
  74. ToLua.CheckArgsCount(L, 1);
  75. UnityEngine.Renderer obj = (UnityEngine.Renderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.Renderer));
  76. bool o = obj.HasPropertyBlock();
  77. LuaDLL.lua_pushboolean(L, o);
  78. return 1;
  79. }
  80. catch(Exception e)
  81. {
  82. return LuaDLL.toluaL_exception(L, e);
  83. }
  84. }
  85. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  86. static int SetPropertyBlock(IntPtr L)
  87. {
  88. try
  89. {
  90. int count = LuaDLL.lua_gettop(L);
  91. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Renderer), typeof(UnityEngine.MaterialPropertyBlock)))
  92. {
  93. UnityEngine.Renderer obj = (UnityEngine.Renderer)ToLua.ToObject(L, 1);
  94. UnityEngine.MaterialPropertyBlock arg0 = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 2);
  95. obj.SetPropertyBlock(arg0);
  96. return 0;
  97. }
  98. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Renderer), typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
  99. {
  100. UnityEngine.Renderer obj = (UnityEngine.Renderer)ToLua.ToObject(L, 1);
  101. UnityEngine.MaterialPropertyBlock arg0 = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 2);
  102. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  103. obj.SetPropertyBlock(arg0, arg1);
  104. return 0;
  105. }
  106. else
  107. {
  108. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Renderer.SetPropertyBlock");
  109. }
  110. }
  111. catch(Exception e)
  112. {
  113. return LuaDLL.toluaL_exception(L, e);
  114. }
  115. }
  116. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  117. static int GetPropertyBlock(IntPtr L)
  118. {
  119. try
  120. {
  121. int count = LuaDLL.lua_gettop(L);
  122. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Renderer), typeof(UnityEngine.MaterialPropertyBlock)))
  123. {
  124. UnityEngine.Renderer obj = (UnityEngine.Renderer)ToLua.ToObject(L, 1);
  125. UnityEngine.MaterialPropertyBlock arg0 = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 2);
  126. obj.GetPropertyBlock(arg0);
  127. return 0;
  128. }
  129. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Renderer), typeof(UnityEngine.MaterialPropertyBlock), typeof(int)))
  130. {
  131. UnityEngine.Renderer obj = (UnityEngine.Renderer)ToLua.ToObject(L, 1);
  132. UnityEngine.MaterialPropertyBlock arg0 = (UnityEngine.MaterialPropertyBlock)ToLua.ToObject(L, 2);
  133. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  134. obj.GetPropertyBlock(arg0, arg1);
  135. return 0;
  136. }
  137. else
  138. {
  139. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Renderer.GetPropertyBlock");
  140. }
  141. }
  142. catch(Exception e)
  143. {
  144. return LuaDLL.toluaL_exception(L, e);
  145. }
  146. }
  147. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  148. static int GetMaterials(IntPtr L)
  149. {
  150. try
  151. {
  152. ToLua.CheckArgsCount(L, 2);
  153. UnityEngine.Renderer obj = (UnityEngine.Renderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.Renderer));
  154. System.Collections.Generic.List<UnityEngine.Material> arg0 = (System.Collections.Generic.List<UnityEngine.Material>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Material>));
  155. obj.GetMaterials(arg0);
  156. return 0;
  157. }
  158. catch(Exception e)
  159. {
  160. return LuaDLL.toluaL_exception(L, e);
  161. }
  162. }
  163. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  164. static int GetSharedMaterials(IntPtr L)
  165. {
  166. try
  167. {
  168. ToLua.CheckArgsCount(L, 2);
  169. UnityEngine.Renderer obj = (UnityEngine.Renderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.Renderer));
  170. System.Collections.Generic.List<UnityEngine.Material> arg0 = (System.Collections.Generic.List<UnityEngine.Material>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Material>));
  171. obj.GetSharedMaterials(arg0);
  172. return 0;
  173. }
  174. catch(Exception e)
  175. {
  176. return LuaDLL.toluaL_exception(L, e);
  177. }
  178. }
  179. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  180. static int GetClosestReflectionProbes(IntPtr L)
  181. {
  182. try
  183. {
  184. ToLua.CheckArgsCount(L, 2);
  185. UnityEngine.Renderer obj = (UnityEngine.Renderer)ToLua.CheckObject(L, 1, typeof(UnityEngine.Renderer));
  186. System.Collections.Generic.List<UnityEngine.Rendering.ReflectionProbeBlendInfo> arg0 = (System.Collections.Generic.List<UnityEngine.Rendering.ReflectionProbeBlendInfo>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.Rendering.ReflectionProbeBlendInfo>));
  187. obj.GetClosestReflectionProbes(arg0);
  188. return 0;
  189. }
  190. catch(Exception e)
  191. {
  192. return LuaDLL.toluaL_exception(L, e);
  193. }
  194. }
  195. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  196. static int op_Equality(IntPtr L)
  197. {
  198. try
  199. {
  200. ToLua.CheckArgsCount(L, 2);
  201. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  202. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  203. bool o = arg0 == arg1;
  204. LuaDLL.lua_pushboolean(L, o);
  205. return 1;
  206. }
  207. catch(Exception e)
  208. {
  209. return LuaDLL.toluaL_exception(L, e);
  210. }
  211. }
  212. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  213. static int get_bounds(IntPtr L)
  214. {
  215. object o = null;
  216. try
  217. {
  218. o = ToLua.ToObject(L, 1);
  219. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  220. UnityEngine.Bounds ret = obj.bounds;
  221. ToLua.Push(L, ret);
  222. return 1;
  223. }
  224. catch(Exception e)
  225. {
  226. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index bounds on a nil value" : e.Message);
  227. }
  228. }
  229. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  230. static int get_enabled(IntPtr L)
  231. {
  232. object o = null;
  233. try
  234. {
  235. o = ToLua.ToObject(L, 1);
  236. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  237. bool ret = obj.enabled;
  238. LuaDLL.lua_pushboolean(L, ret);
  239. return 1;
  240. }
  241. catch(Exception e)
  242. {
  243. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index enabled on a nil value" : e.Message);
  244. }
  245. }
  246. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  247. static int get_isVisible(IntPtr L)
  248. {
  249. object o = null;
  250. try
  251. {
  252. o = ToLua.ToObject(L, 1);
  253. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  254. bool ret = obj.isVisible;
  255. LuaDLL.lua_pushboolean(L, ret);
  256. return 1;
  257. }
  258. catch(Exception e)
  259. {
  260. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isVisible on a nil value" : e.Message);
  261. }
  262. }
  263. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  264. static int get_shadowCastingMode(IntPtr L)
  265. {
  266. object o = null;
  267. try
  268. {
  269. o = ToLua.ToObject(L, 1);
  270. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  271. UnityEngine.Rendering.ShadowCastingMode ret = obj.shadowCastingMode;
  272. ToLua.Push(L, ret);
  273. return 1;
  274. }
  275. catch(Exception e)
  276. {
  277. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index shadowCastingMode on a nil value" : e.Message);
  278. }
  279. }
  280. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  281. static int get_receiveShadows(IntPtr L)
  282. {
  283. object o = null;
  284. try
  285. {
  286. o = ToLua.ToObject(L, 1);
  287. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  288. bool ret = obj.receiveShadows;
  289. LuaDLL.lua_pushboolean(L, ret);
  290. return 1;
  291. }
  292. catch(Exception e)
  293. {
  294. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index receiveShadows on a nil value" : e.Message);
  295. }
  296. }
  297. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  298. static int get_motionVectorGenerationMode(IntPtr L)
  299. {
  300. object o = null;
  301. try
  302. {
  303. o = ToLua.ToObject(L, 1);
  304. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  305. UnityEngine.MotionVectorGenerationMode ret = obj.motionVectorGenerationMode;
  306. ToLua.Push(L, ret);
  307. return 1;
  308. }
  309. catch(Exception e)
  310. {
  311. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index motionVectorGenerationMode on a nil value" : e.Message);
  312. }
  313. }
  314. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  315. static int get_lightProbeUsage(IntPtr L)
  316. {
  317. object o = null;
  318. try
  319. {
  320. o = ToLua.ToObject(L, 1);
  321. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  322. UnityEngine.Rendering.LightProbeUsage ret = obj.lightProbeUsage;
  323. ToLua.Push(L, ret);
  324. return 1;
  325. }
  326. catch(Exception e)
  327. {
  328. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightProbeUsage on a nil value" : e.Message);
  329. }
  330. }
  331. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  332. static int get_reflectionProbeUsage(IntPtr L)
  333. {
  334. object o = null;
  335. try
  336. {
  337. o = ToLua.ToObject(L, 1);
  338. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  339. UnityEngine.Rendering.ReflectionProbeUsage ret = obj.reflectionProbeUsage;
  340. ToLua.Push(L, ret);
  341. return 1;
  342. }
  343. catch(Exception e)
  344. {
  345. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reflectionProbeUsage on a nil value" : e.Message);
  346. }
  347. }
  348. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  349. static int get_renderingLayerMask(IntPtr L)
  350. {
  351. object o = null;
  352. try
  353. {
  354. o = ToLua.ToObject(L, 1);
  355. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  356. uint ret = obj.renderingLayerMask;
  357. LuaDLL.lua_pushnumber(L, ret);
  358. return 1;
  359. }
  360. catch(Exception e)
  361. {
  362. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index renderingLayerMask on a nil value" : e.Message);
  363. }
  364. }
  365. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  366. static int get_rendererPriority(IntPtr L)
  367. {
  368. object o = null;
  369. try
  370. {
  371. o = ToLua.ToObject(L, 1);
  372. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  373. int ret = obj.rendererPriority;
  374. LuaDLL.lua_pushinteger(L, ret);
  375. return 1;
  376. }
  377. catch(Exception e)
  378. {
  379. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rendererPriority on a nil value" : e.Message);
  380. }
  381. }
  382. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  383. static int get_sortingLayerName(IntPtr L)
  384. {
  385. object o = null;
  386. try
  387. {
  388. o = ToLua.ToObject(L, 1);
  389. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  390. string ret = obj.sortingLayerName;
  391. LuaDLL.lua_pushstring(L, ret);
  392. return 1;
  393. }
  394. catch(Exception e)
  395. {
  396. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sortingLayerName on a nil value" : e.Message);
  397. }
  398. }
  399. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  400. static int get_sortingLayerID(IntPtr L)
  401. {
  402. object o = null;
  403. try
  404. {
  405. o = ToLua.ToObject(L, 1);
  406. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  407. int ret = obj.sortingLayerID;
  408. LuaDLL.lua_pushinteger(L, ret);
  409. return 1;
  410. }
  411. catch(Exception e)
  412. {
  413. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sortingLayerID on a nil value" : e.Message);
  414. }
  415. }
  416. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  417. static int get_sortingOrder(IntPtr L)
  418. {
  419. object o = null;
  420. try
  421. {
  422. o = ToLua.ToObject(L, 1);
  423. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  424. int ret = obj.sortingOrder;
  425. LuaDLL.lua_pushinteger(L, ret);
  426. return 1;
  427. }
  428. catch(Exception e)
  429. {
  430. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sortingOrder on a nil value" : e.Message);
  431. }
  432. }
  433. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  434. static int get_allowOcclusionWhenDynamic(IntPtr L)
  435. {
  436. object o = null;
  437. try
  438. {
  439. o = ToLua.ToObject(L, 1);
  440. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  441. bool ret = obj.allowOcclusionWhenDynamic;
  442. LuaDLL.lua_pushboolean(L, ret);
  443. return 1;
  444. }
  445. catch(Exception e)
  446. {
  447. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index allowOcclusionWhenDynamic on a nil value" : e.Message);
  448. }
  449. }
  450. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  451. static int get_isPartOfStaticBatch(IntPtr L)
  452. {
  453. object o = null;
  454. try
  455. {
  456. o = ToLua.ToObject(L, 1);
  457. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  458. bool ret = obj.isPartOfStaticBatch;
  459. LuaDLL.lua_pushboolean(L, ret);
  460. return 1;
  461. }
  462. catch(Exception e)
  463. {
  464. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index isPartOfStaticBatch on a nil value" : e.Message);
  465. }
  466. }
  467. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  468. static int get_worldToLocalMatrix(IntPtr L)
  469. {
  470. object o = null;
  471. try
  472. {
  473. o = ToLua.ToObject(L, 1);
  474. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  475. UnityEngine.Matrix4x4 ret = obj.worldToLocalMatrix;
  476. ToLua.PushValue(L, ret);
  477. return 1;
  478. }
  479. catch(Exception e)
  480. {
  481. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index worldToLocalMatrix on a nil value" : e.Message);
  482. }
  483. }
  484. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  485. static int get_localToWorldMatrix(IntPtr L)
  486. {
  487. object o = null;
  488. try
  489. {
  490. o = ToLua.ToObject(L, 1);
  491. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  492. UnityEngine.Matrix4x4 ret = obj.localToWorldMatrix;
  493. ToLua.PushValue(L, ret);
  494. return 1;
  495. }
  496. catch(Exception e)
  497. {
  498. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index localToWorldMatrix on a nil value" : e.Message);
  499. }
  500. }
  501. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  502. static int get_lightProbeProxyVolumeOverride(IntPtr L)
  503. {
  504. object o = null;
  505. try
  506. {
  507. o = ToLua.ToObject(L, 1);
  508. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  509. UnityEngine.GameObject ret = obj.lightProbeProxyVolumeOverride;
  510. ToLua.Push(L, ret);
  511. return 1;
  512. }
  513. catch(Exception e)
  514. {
  515. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightProbeProxyVolumeOverride on a nil value" : e.Message);
  516. }
  517. }
  518. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  519. static int get_probeAnchor(IntPtr L)
  520. {
  521. object o = null;
  522. try
  523. {
  524. o = ToLua.ToObject(L, 1);
  525. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  526. UnityEngine.Transform ret = obj.probeAnchor;
  527. ToLua.Push(L, ret);
  528. return 1;
  529. }
  530. catch(Exception e)
  531. {
  532. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index probeAnchor on a nil value" : e.Message);
  533. }
  534. }
  535. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  536. static int get_lightmapIndex(IntPtr L)
  537. {
  538. object o = null;
  539. try
  540. {
  541. o = ToLua.ToObject(L, 1);
  542. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  543. int ret = obj.lightmapIndex;
  544. LuaDLL.lua_pushinteger(L, ret);
  545. return 1;
  546. }
  547. catch(Exception e)
  548. {
  549. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightmapIndex on a nil value" : e.Message);
  550. }
  551. }
  552. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  553. static int get_realtimeLightmapIndex(IntPtr L)
  554. {
  555. object o = null;
  556. try
  557. {
  558. o = ToLua.ToObject(L, 1);
  559. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  560. int ret = obj.realtimeLightmapIndex;
  561. LuaDLL.lua_pushinteger(L, ret);
  562. return 1;
  563. }
  564. catch(Exception e)
  565. {
  566. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index realtimeLightmapIndex on a nil value" : e.Message);
  567. }
  568. }
  569. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  570. static int get_lightmapScaleOffset(IntPtr L)
  571. {
  572. object o = null;
  573. try
  574. {
  575. o = ToLua.ToObject(L, 1);
  576. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  577. UnityEngine.Vector4 ret = obj.lightmapScaleOffset;
  578. ToLua.Push(L, ret);
  579. return 1;
  580. }
  581. catch(Exception e)
  582. {
  583. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightmapScaleOffset on a nil value" : e.Message);
  584. }
  585. }
  586. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  587. static int get_realtimeLightmapScaleOffset(IntPtr L)
  588. {
  589. object o = null;
  590. try
  591. {
  592. o = ToLua.ToObject(L, 1);
  593. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  594. UnityEngine.Vector4 ret = obj.realtimeLightmapScaleOffset;
  595. ToLua.Push(L, ret);
  596. return 1;
  597. }
  598. catch(Exception e)
  599. {
  600. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index realtimeLightmapScaleOffset on a nil value" : e.Message);
  601. }
  602. }
  603. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  604. static int get_materials(IntPtr L)
  605. {
  606. object o = null;
  607. try
  608. {
  609. o = ToLua.ToObject(L, 1);
  610. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  611. UnityEngine.Material[] ret = obj.materials;
  612. ToLua.Push(L, ret);
  613. return 1;
  614. }
  615. catch(Exception e)
  616. {
  617. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index materials on a nil value" : e.Message);
  618. }
  619. }
  620. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  621. static int get_material(IntPtr L)
  622. {
  623. object o = null;
  624. try
  625. {
  626. o = ToLua.ToObject(L, 1);
  627. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  628. UnityEngine.Material ret = obj.material;
  629. ToLua.Push(L, ret);
  630. return 1;
  631. }
  632. catch(Exception e)
  633. {
  634. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index material on a nil value" : e.Message);
  635. }
  636. }
  637. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  638. static int get_sharedMaterial(IntPtr L)
  639. {
  640. object o = null;
  641. try
  642. {
  643. o = ToLua.ToObject(L, 1);
  644. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  645. UnityEngine.Material ret = obj.sharedMaterial;
  646. ToLua.Push(L, ret);
  647. return 1;
  648. }
  649. catch(Exception e)
  650. {
  651. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sharedMaterial on a nil value" : e.Message);
  652. }
  653. }
  654. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  655. static int get_sharedMaterials(IntPtr L)
  656. {
  657. object o = null;
  658. try
  659. {
  660. o = ToLua.ToObject(L, 1);
  661. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  662. UnityEngine.Material[] ret = obj.sharedMaterials;
  663. ToLua.Push(L, ret);
  664. return 1;
  665. }
  666. catch(Exception e)
  667. {
  668. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sharedMaterials on a nil value" : e.Message);
  669. }
  670. }
  671. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  672. static int set_enabled(IntPtr L)
  673. {
  674. object o = null;
  675. try
  676. {
  677. o = ToLua.ToObject(L, 1);
  678. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  679. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  680. obj.enabled = arg0;
  681. return 0;
  682. }
  683. catch(Exception e)
  684. {
  685. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index enabled on a nil value" : e.Message);
  686. }
  687. }
  688. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  689. static int set_shadowCastingMode(IntPtr L)
  690. {
  691. object o = null;
  692. try
  693. {
  694. o = ToLua.ToObject(L, 1);
  695. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  696. UnityEngine.Rendering.ShadowCastingMode arg0 = (UnityEngine.Rendering.ShadowCastingMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.ShadowCastingMode));
  697. obj.shadowCastingMode = arg0;
  698. return 0;
  699. }
  700. catch(Exception e)
  701. {
  702. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index shadowCastingMode on a nil value" : e.Message);
  703. }
  704. }
  705. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  706. static int set_receiveShadows(IntPtr L)
  707. {
  708. object o = null;
  709. try
  710. {
  711. o = ToLua.ToObject(L, 1);
  712. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  713. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  714. obj.receiveShadows = arg0;
  715. return 0;
  716. }
  717. catch(Exception e)
  718. {
  719. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index receiveShadows on a nil value" : e.Message);
  720. }
  721. }
  722. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  723. static int set_motionVectorGenerationMode(IntPtr L)
  724. {
  725. object o = null;
  726. try
  727. {
  728. o = ToLua.ToObject(L, 1);
  729. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  730. UnityEngine.MotionVectorGenerationMode arg0 = (UnityEngine.MotionVectorGenerationMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.MotionVectorGenerationMode));
  731. obj.motionVectorGenerationMode = arg0;
  732. return 0;
  733. }
  734. catch(Exception e)
  735. {
  736. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index motionVectorGenerationMode on a nil value" : e.Message);
  737. }
  738. }
  739. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  740. static int set_lightProbeUsage(IntPtr L)
  741. {
  742. object o = null;
  743. try
  744. {
  745. o = ToLua.ToObject(L, 1);
  746. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  747. UnityEngine.Rendering.LightProbeUsage arg0 = (UnityEngine.Rendering.LightProbeUsage)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.LightProbeUsage));
  748. obj.lightProbeUsage = arg0;
  749. return 0;
  750. }
  751. catch(Exception e)
  752. {
  753. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightProbeUsage on a nil value" : e.Message);
  754. }
  755. }
  756. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  757. static int set_reflectionProbeUsage(IntPtr L)
  758. {
  759. object o = null;
  760. try
  761. {
  762. o = ToLua.ToObject(L, 1);
  763. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  764. UnityEngine.Rendering.ReflectionProbeUsage arg0 = (UnityEngine.Rendering.ReflectionProbeUsage)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.ReflectionProbeUsage));
  765. obj.reflectionProbeUsage = arg0;
  766. return 0;
  767. }
  768. catch(Exception e)
  769. {
  770. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index reflectionProbeUsage on a nil value" : e.Message);
  771. }
  772. }
  773. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  774. static int set_renderingLayerMask(IntPtr L)
  775. {
  776. object o = null;
  777. try
  778. {
  779. o = ToLua.ToObject(L, 1);
  780. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  781. uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 2);
  782. obj.renderingLayerMask = arg0;
  783. return 0;
  784. }
  785. catch(Exception e)
  786. {
  787. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index renderingLayerMask on a nil value" : e.Message);
  788. }
  789. }
  790. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  791. static int set_rendererPriority(IntPtr L)
  792. {
  793. object o = null;
  794. try
  795. {
  796. o = ToLua.ToObject(L, 1);
  797. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  798. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  799. obj.rendererPriority = arg0;
  800. return 0;
  801. }
  802. catch(Exception e)
  803. {
  804. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rendererPriority on a nil value" : e.Message);
  805. }
  806. }
  807. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  808. static int set_sortingLayerName(IntPtr L)
  809. {
  810. object o = null;
  811. try
  812. {
  813. o = ToLua.ToObject(L, 1);
  814. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  815. string arg0 = ToLua.CheckString(L, 2);
  816. obj.sortingLayerName = arg0;
  817. return 0;
  818. }
  819. catch(Exception e)
  820. {
  821. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sortingLayerName on a nil value" : e.Message);
  822. }
  823. }
  824. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  825. static int set_sortingLayerID(IntPtr L)
  826. {
  827. object o = null;
  828. try
  829. {
  830. o = ToLua.ToObject(L, 1);
  831. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  832. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  833. obj.sortingLayerID = arg0;
  834. return 0;
  835. }
  836. catch(Exception e)
  837. {
  838. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sortingLayerID on a nil value" : e.Message);
  839. }
  840. }
  841. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  842. static int set_sortingOrder(IntPtr L)
  843. {
  844. object o = null;
  845. try
  846. {
  847. o = ToLua.ToObject(L, 1);
  848. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  849. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  850. obj.sortingOrder = arg0;
  851. return 0;
  852. }
  853. catch(Exception e)
  854. {
  855. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sortingOrder on a nil value" : e.Message);
  856. }
  857. }
  858. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  859. static int set_allowOcclusionWhenDynamic(IntPtr L)
  860. {
  861. object o = null;
  862. try
  863. {
  864. o = ToLua.ToObject(L, 1);
  865. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  866. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  867. obj.allowOcclusionWhenDynamic = arg0;
  868. return 0;
  869. }
  870. catch(Exception e)
  871. {
  872. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index allowOcclusionWhenDynamic on a nil value" : e.Message);
  873. }
  874. }
  875. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  876. static int set_lightProbeProxyVolumeOverride(IntPtr L)
  877. {
  878. object o = null;
  879. try
  880. {
  881. o = ToLua.ToObject(L, 1);
  882. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  883. UnityEngine.GameObject arg0 = (UnityEngine.GameObject)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.GameObject));
  884. obj.lightProbeProxyVolumeOverride = arg0;
  885. return 0;
  886. }
  887. catch(Exception e)
  888. {
  889. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightProbeProxyVolumeOverride on a nil value" : e.Message);
  890. }
  891. }
  892. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  893. static int set_probeAnchor(IntPtr L)
  894. {
  895. object o = null;
  896. try
  897. {
  898. o = ToLua.ToObject(L, 1);
  899. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  900. UnityEngine.Transform arg0 = (UnityEngine.Transform)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Transform));
  901. obj.probeAnchor = arg0;
  902. return 0;
  903. }
  904. catch(Exception e)
  905. {
  906. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index probeAnchor on a nil value" : e.Message);
  907. }
  908. }
  909. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  910. static int set_lightmapIndex(IntPtr L)
  911. {
  912. object o = null;
  913. try
  914. {
  915. o = ToLua.ToObject(L, 1);
  916. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  917. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  918. obj.lightmapIndex = arg0;
  919. return 0;
  920. }
  921. catch(Exception e)
  922. {
  923. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightmapIndex on a nil value" : e.Message);
  924. }
  925. }
  926. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  927. static int set_realtimeLightmapIndex(IntPtr L)
  928. {
  929. object o = null;
  930. try
  931. {
  932. o = ToLua.ToObject(L, 1);
  933. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  934. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  935. obj.realtimeLightmapIndex = arg0;
  936. return 0;
  937. }
  938. catch(Exception e)
  939. {
  940. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index realtimeLightmapIndex on a nil value" : e.Message);
  941. }
  942. }
  943. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  944. static int set_lightmapScaleOffset(IntPtr L)
  945. {
  946. object o = null;
  947. try
  948. {
  949. o = ToLua.ToObject(L, 1);
  950. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  951. UnityEngine.Vector4 arg0 = ToLua.ToVector4(L, 2);
  952. obj.lightmapScaleOffset = arg0;
  953. return 0;
  954. }
  955. catch(Exception e)
  956. {
  957. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lightmapScaleOffset on a nil value" : e.Message);
  958. }
  959. }
  960. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  961. static int set_realtimeLightmapScaleOffset(IntPtr L)
  962. {
  963. object o = null;
  964. try
  965. {
  966. o = ToLua.ToObject(L, 1);
  967. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  968. UnityEngine.Vector4 arg0 = ToLua.ToVector4(L, 2);
  969. obj.realtimeLightmapScaleOffset = arg0;
  970. return 0;
  971. }
  972. catch(Exception e)
  973. {
  974. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index realtimeLightmapScaleOffset on a nil value" : e.Message);
  975. }
  976. }
  977. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  978. static int set_materials(IntPtr L)
  979. {
  980. object o = null;
  981. try
  982. {
  983. o = ToLua.ToObject(L, 1);
  984. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  985. UnityEngine.Material[] arg0 = ToLua.CheckObjectArray<UnityEngine.Material>(L, 2);
  986. obj.materials = arg0;
  987. return 0;
  988. }
  989. catch(Exception e)
  990. {
  991. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index materials on a nil value" : e.Message);
  992. }
  993. }
  994. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  995. static int set_material(IntPtr L)
  996. {
  997. object o = null;
  998. try
  999. {
  1000. o = ToLua.ToObject(L, 1);
  1001. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  1002. UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Material));
  1003. obj.material = arg0;
  1004. return 0;
  1005. }
  1006. catch(Exception e)
  1007. {
  1008. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index material on a nil value" : e.Message);
  1009. }
  1010. }
  1011. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1012. static int set_sharedMaterial(IntPtr L)
  1013. {
  1014. object o = null;
  1015. try
  1016. {
  1017. o = ToLua.ToObject(L, 1);
  1018. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  1019. UnityEngine.Material arg0 = (UnityEngine.Material)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Material));
  1020. obj.sharedMaterial = arg0;
  1021. return 0;
  1022. }
  1023. catch(Exception e)
  1024. {
  1025. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sharedMaterial on a nil value" : e.Message);
  1026. }
  1027. }
  1028. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1029. static int set_sharedMaterials(IntPtr L)
  1030. {
  1031. object o = null;
  1032. try
  1033. {
  1034. o = ToLua.ToObject(L, 1);
  1035. UnityEngine.Renderer obj = (UnityEngine.Renderer)o;
  1036. UnityEngine.Material[] arg0 = ToLua.CheckObjectArray<UnityEngine.Material>(L, 2);
  1037. obj.sharedMaterials = arg0;
  1038. return 0;
  1039. }
  1040. catch(Exception e)
  1041. {
  1042. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sharedMaterials on a nil value" : e.Message);
  1043. }
  1044. }
  1045. }