UnityEngine_LightWrap.cs 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498
  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using DG.Tweening;
  4. using LuaInterface;
  5. public class UnityEngine_LightWrap
  6. {
  7. public static void Register(LuaState L)
  8. {
  9. L.BeginClass(typeof(UnityEngine.Light), typeof(UnityEngine.Behaviour), "Light");
  10. L.RegFunction("Reset", Reset);
  11. L.RegFunction("AddCommandBuffer", AddCommandBuffer);
  12. L.RegFunction("AddCommandBufferAsync", AddCommandBufferAsync);
  13. L.RegFunction("RemoveCommandBuffer", RemoveCommandBuffer);
  14. L.RegFunction("RemoveCommandBuffers", RemoveCommandBuffers);
  15. L.RegFunction("RemoveAllCommandBuffers", RemoveAllCommandBuffers);
  16. L.RegFunction("GetCommandBuffers", GetCommandBuffers);
  17. L.RegFunction("GetLights", GetLights);
  18. L.RegFunction("DOTogglePause", DOTogglePause);
  19. L.RegFunction("DOSmoothRewind", DOSmoothRewind);
  20. L.RegFunction("DORewind", DORewind);
  21. L.RegFunction("DORestart", DORestart);
  22. L.RegFunction("DOPlayForward", DOPlayForward);
  23. L.RegFunction("DOPlayBackwards", DOPlayBackwards);
  24. L.RegFunction("DOPlay", DOPlay);
  25. L.RegFunction("DOPause", DOPause);
  26. L.RegFunction("DOGoto", DOGoto);
  27. L.RegFunction("DOFlip", DOFlip);
  28. L.RegFunction("DOKill", DOKill);
  29. L.RegFunction("DOComplete", DOComplete);
  30. L.RegFunction("DOBlendableColor", DOBlendableColor);
  31. L.RegFunction("DOShadowStrength", DOShadowStrength);
  32. L.RegFunction("DOIntensity", DOIntensity);
  33. L.RegFunction("DOColor", DOColor);
  34. L.RegFunction("New", _CreateUnityEngine_Light);
  35. L.RegFunction("__eq", op_Equality);
  36. L.RegFunction("__tostring", ToLua.op_ToString);
  37. L.RegVar("type", get_type, set_type);
  38. L.RegVar("spotAngle", get_spotAngle, set_spotAngle);
  39. L.RegVar("color", get_color, set_color);
  40. L.RegVar("colorTemperature", get_colorTemperature, set_colorTemperature);
  41. L.RegVar("intensity", get_intensity, set_intensity);
  42. L.RegVar("bounceIntensity", get_bounceIntensity, set_bounceIntensity);
  43. L.RegVar("shadowCustomResolution", get_shadowCustomResolution, set_shadowCustomResolution);
  44. L.RegVar("shadowBias", get_shadowBias, set_shadowBias);
  45. L.RegVar("shadowNormalBias", get_shadowNormalBias, set_shadowNormalBias);
  46. L.RegVar("shadowNearPlane", get_shadowNearPlane, set_shadowNearPlane);
  47. L.RegVar("range", get_range, set_range);
  48. L.RegVar("flare", get_flare, set_flare);
  49. L.RegVar("bakingOutput", get_bakingOutput, set_bakingOutput);
  50. L.RegVar("cullingMask", get_cullingMask, set_cullingMask);
  51. L.RegVar("lightShadowCasterMode", get_lightShadowCasterMode, set_lightShadowCasterMode);
  52. L.RegVar("shadows", get_shadows, set_shadows);
  53. L.RegVar("shadowStrength", get_shadowStrength, set_shadowStrength);
  54. L.RegVar("shadowResolution", get_shadowResolution, set_shadowResolution);
  55. L.RegVar("layerShadowCullDistances", get_layerShadowCullDistances, set_layerShadowCullDistances);
  56. L.RegVar("cookieSize", get_cookieSize, set_cookieSize);
  57. L.RegVar("cookie", get_cookie, set_cookie);
  58. L.RegVar("renderMode", get_renderMode, set_renderMode);
  59. L.RegVar("commandBufferCount", get_commandBufferCount, null);
  60. L.EndClass();
  61. }
  62. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  63. static int _CreateUnityEngine_Light(IntPtr L)
  64. {
  65. try
  66. {
  67. int count = LuaDLL.lua_gettop(L);
  68. if (count == 0)
  69. {
  70. UnityEngine.Light obj = new UnityEngine.Light();
  71. ToLua.PushSealed(L, obj);
  72. return 1;
  73. }
  74. else
  75. {
  76. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Light.New");
  77. }
  78. }
  79. catch (Exception e)
  80. {
  81. return LuaDLL.toluaL_exception(L, e);
  82. }
  83. }
  84. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  85. static int Reset(IntPtr L)
  86. {
  87. try
  88. {
  89. ToLua.CheckArgsCount(L, 1);
  90. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  91. obj.Reset();
  92. return 0;
  93. }
  94. catch (Exception e)
  95. {
  96. return LuaDLL.toluaL_exception(L, e);
  97. }
  98. }
  99. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  100. static int AddCommandBuffer(IntPtr L)
  101. {
  102. try
  103. {
  104. int count = LuaDLL.lua_gettop(L);
  105. if (count == 3)
  106. {
  107. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  108. UnityEngine.Rendering.LightEvent arg0 = (UnityEngine.Rendering.LightEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.LightEvent));
  109. UnityEngine.Rendering.CommandBuffer arg1 = (UnityEngine.Rendering.CommandBuffer)ToLua.CheckObject<UnityEngine.Rendering.CommandBuffer>(L, 3);
  110. obj.AddCommandBuffer(arg0, arg1);
  111. return 0;
  112. }
  113. else if (count == 4)
  114. {
  115. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  116. UnityEngine.Rendering.LightEvent arg0 = (UnityEngine.Rendering.LightEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.LightEvent));
  117. UnityEngine.Rendering.CommandBuffer arg1 = (UnityEngine.Rendering.CommandBuffer)ToLua.CheckObject<UnityEngine.Rendering.CommandBuffer>(L, 3);
  118. UnityEngine.Rendering.ShadowMapPass arg2 = (UnityEngine.Rendering.ShadowMapPass)ToLua.CheckObject(L, 4, typeof(UnityEngine.Rendering.ShadowMapPass));
  119. obj.AddCommandBuffer(arg0, arg1, arg2);
  120. return 0;
  121. }
  122. else
  123. {
  124. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Light.AddCommandBuffer");
  125. }
  126. }
  127. catch (Exception e)
  128. {
  129. return LuaDLL.toluaL_exception(L, e);
  130. }
  131. }
  132. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  133. static int AddCommandBufferAsync(IntPtr L)
  134. {
  135. try
  136. {
  137. int count = LuaDLL.lua_gettop(L);
  138. if (count == 4)
  139. {
  140. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  141. UnityEngine.Rendering.LightEvent arg0 = (UnityEngine.Rendering.LightEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.LightEvent));
  142. UnityEngine.Rendering.CommandBuffer arg1 = (UnityEngine.Rendering.CommandBuffer)ToLua.CheckObject<UnityEngine.Rendering.CommandBuffer>(L, 3);
  143. UnityEngine.Rendering.ComputeQueueType arg2 = (UnityEngine.Rendering.ComputeQueueType)ToLua.CheckObject(L, 4, typeof(UnityEngine.Rendering.ComputeQueueType));
  144. obj.AddCommandBufferAsync(arg0, arg1, arg2);
  145. return 0;
  146. }
  147. else if (count == 5)
  148. {
  149. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  150. UnityEngine.Rendering.LightEvent arg0 = (UnityEngine.Rendering.LightEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.LightEvent));
  151. UnityEngine.Rendering.CommandBuffer arg1 = (UnityEngine.Rendering.CommandBuffer)ToLua.CheckObject<UnityEngine.Rendering.CommandBuffer>(L, 3);
  152. UnityEngine.Rendering.ShadowMapPass arg2 = (UnityEngine.Rendering.ShadowMapPass)ToLua.CheckObject(L, 4, typeof(UnityEngine.Rendering.ShadowMapPass));
  153. UnityEngine.Rendering.ComputeQueueType arg3 = (UnityEngine.Rendering.ComputeQueueType)ToLua.CheckObject(L, 5, typeof(UnityEngine.Rendering.ComputeQueueType));
  154. obj.AddCommandBufferAsync(arg0, arg1, arg2, arg3);
  155. return 0;
  156. }
  157. else
  158. {
  159. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Light.AddCommandBufferAsync");
  160. }
  161. }
  162. catch (Exception e)
  163. {
  164. return LuaDLL.toluaL_exception(L, e);
  165. }
  166. }
  167. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  168. static int RemoveCommandBuffer(IntPtr L)
  169. {
  170. try
  171. {
  172. ToLua.CheckArgsCount(L, 3);
  173. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  174. UnityEngine.Rendering.LightEvent arg0 = (UnityEngine.Rendering.LightEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.LightEvent));
  175. UnityEngine.Rendering.CommandBuffer arg1 = (UnityEngine.Rendering.CommandBuffer)ToLua.CheckObject<UnityEngine.Rendering.CommandBuffer>(L, 3);
  176. obj.RemoveCommandBuffer(arg0, arg1);
  177. return 0;
  178. }
  179. catch (Exception e)
  180. {
  181. return LuaDLL.toluaL_exception(L, e);
  182. }
  183. }
  184. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  185. static int RemoveCommandBuffers(IntPtr L)
  186. {
  187. try
  188. {
  189. ToLua.CheckArgsCount(L, 2);
  190. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  191. UnityEngine.Rendering.LightEvent arg0 = (UnityEngine.Rendering.LightEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.LightEvent));
  192. obj.RemoveCommandBuffers(arg0);
  193. return 0;
  194. }
  195. catch (Exception e)
  196. {
  197. return LuaDLL.toluaL_exception(L, e);
  198. }
  199. }
  200. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  201. static int RemoveAllCommandBuffers(IntPtr L)
  202. {
  203. try
  204. {
  205. ToLua.CheckArgsCount(L, 1);
  206. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  207. obj.RemoveAllCommandBuffers();
  208. return 0;
  209. }
  210. catch (Exception e)
  211. {
  212. return LuaDLL.toluaL_exception(L, e);
  213. }
  214. }
  215. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  216. static int GetCommandBuffers(IntPtr L)
  217. {
  218. try
  219. {
  220. ToLua.CheckArgsCount(L, 2);
  221. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  222. UnityEngine.Rendering.LightEvent arg0 = (UnityEngine.Rendering.LightEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.LightEvent));
  223. UnityEngine.Rendering.CommandBuffer[] o = obj.GetCommandBuffers(arg0);
  224. ToLua.Push(L, o);
  225. return 1;
  226. }
  227. catch (Exception e)
  228. {
  229. return LuaDLL.toluaL_exception(L, e);
  230. }
  231. }
  232. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  233. static int GetLights(IntPtr L)
  234. {
  235. try
  236. {
  237. ToLua.CheckArgsCount(L, 2);
  238. UnityEngine.LightType arg0 = (UnityEngine.LightType)ToLua.CheckObject(L, 1, typeof(UnityEngine.LightType));
  239. int arg1 = (int)LuaDLL.luaL_checknumber(L, 2);
  240. UnityEngine.Light[] o = UnityEngine.Light.GetLights(arg0, arg1);
  241. ToLua.Push(L, o);
  242. return 1;
  243. }
  244. catch (Exception e)
  245. {
  246. return LuaDLL.toluaL_exception(L, e);
  247. }
  248. }
  249. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  250. static int DOTogglePause(IntPtr L)
  251. {
  252. try
  253. {
  254. ToLua.CheckArgsCount(L, 1);
  255. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  256. int o = obj.DOTogglePause();
  257. LuaDLL.lua_pushinteger(L, o);
  258. return 1;
  259. }
  260. catch (Exception e)
  261. {
  262. return LuaDLL.toluaL_exception(L, e);
  263. }
  264. }
  265. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  266. static int DOSmoothRewind(IntPtr L)
  267. {
  268. try
  269. {
  270. ToLua.CheckArgsCount(L, 1);
  271. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  272. int o = obj.DOSmoothRewind();
  273. LuaDLL.lua_pushinteger(L, o);
  274. return 1;
  275. }
  276. catch (Exception e)
  277. {
  278. return LuaDLL.toluaL_exception(L, e);
  279. }
  280. }
  281. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  282. static int DORewind(IntPtr L)
  283. {
  284. try
  285. {
  286. int count = LuaDLL.lua_gettop(L);
  287. if (count == 1)
  288. {
  289. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  290. int o = obj.DORewind();
  291. LuaDLL.lua_pushinteger(L, o);
  292. return 1;
  293. }
  294. else if (count == 2)
  295. {
  296. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  297. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  298. int o = obj.DORewind(arg0);
  299. LuaDLL.lua_pushinteger(L, o);
  300. return 1;
  301. }
  302. else
  303. {
  304. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Light.DORewind");
  305. }
  306. }
  307. catch (Exception e)
  308. {
  309. return LuaDLL.toluaL_exception(L, e);
  310. }
  311. }
  312. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  313. static int DORestart(IntPtr L)
  314. {
  315. try
  316. {
  317. int count = LuaDLL.lua_gettop(L);
  318. if (count == 1)
  319. {
  320. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  321. int o = obj.DORestart();
  322. LuaDLL.lua_pushinteger(L, o);
  323. return 1;
  324. }
  325. else if (count == 2)
  326. {
  327. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  328. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  329. int o = obj.DORestart(arg0);
  330. LuaDLL.lua_pushinteger(L, o);
  331. return 1;
  332. }
  333. else
  334. {
  335. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Light.DORestart");
  336. }
  337. }
  338. catch (Exception e)
  339. {
  340. return LuaDLL.toluaL_exception(L, e);
  341. }
  342. }
  343. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  344. static int DOPlayForward(IntPtr L)
  345. {
  346. try
  347. {
  348. ToLua.CheckArgsCount(L, 1);
  349. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  350. int o = obj.DOPlayForward();
  351. LuaDLL.lua_pushinteger(L, o);
  352. return 1;
  353. }
  354. catch (Exception e)
  355. {
  356. return LuaDLL.toluaL_exception(L, e);
  357. }
  358. }
  359. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  360. static int DOPlayBackwards(IntPtr L)
  361. {
  362. try
  363. {
  364. ToLua.CheckArgsCount(L, 1);
  365. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  366. int o = obj.DOPlayBackwards();
  367. LuaDLL.lua_pushinteger(L, o);
  368. return 1;
  369. }
  370. catch (Exception e)
  371. {
  372. return LuaDLL.toluaL_exception(L, e);
  373. }
  374. }
  375. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  376. static int DOPlay(IntPtr L)
  377. {
  378. try
  379. {
  380. ToLua.CheckArgsCount(L, 1);
  381. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  382. int o = obj.DOPlay();
  383. LuaDLL.lua_pushinteger(L, o);
  384. return 1;
  385. }
  386. catch (Exception e)
  387. {
  388. return LuaDLL.toluaL_exception(L, e);
  389. }
  390. }
  391. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  392. static int DOPause(IntPtr L)
  393. {
  394. try
  395. {
  396. ToLua.CheckArgsCount(L, 1);
  397. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  398. int o = obj.DOPause();
  399. LuaDLL.lua_pushinteger(L, o);
  400. return 1;
  401. }
  402. catch (Exception e)
  403. {
  404. return LuaDLL.toluaL_exception(L, e);
  405. }
  406. }
  407. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  408. static int DOGoto(IntPtr L)
  409. {
  410. try
  411. {
  412. int count = LuaDLL.lua_gettop(L);
  413. if (count == 2)
  414. {
  415. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  416. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  417. int o = obj.DOGoto(arg0);
  418. LuaDLL.lua_pushinteger(L, o);
  419. return 1;
  420. }
  421. else if (count == 3)
  422. {
  423. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  424. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  425. bool arg1 = LuaDLL.luaL_checkboolean(L, 3);
  426. int o = obj.DOGoto(arg0, arg1);
  427. LuaDLL.lua_pushinteger(L, o);
  428. return 1;
  429. }
  430. else
  431. {
  432. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Light.DOGoto");
  433. }
  434. }
  435. catch (Exception e)
  436. {
  437. return LuaDLL.toluaL_exception(L, e);
  438. }
  439. }
  440. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  441. static int DOFlip(IntPtr L)
  442. {
  443. try
  444. {
  445. ToLua.CheckArgsCount(L, 1);
  446. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  447. int o = obj.DOFlip();
  448. LuaDLL.lua_pushinteger(L, o);
  449. return 1;
  450. }
  451. catch (Exception e)
  452. {
  453. return LuaDLL.toluaL_exception(L, e);
  454. }
  455. }
  456. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  457. static int DOKill(IntPtr L)
  458. {
  459. try
  460. {
  461. int count = LuaDLL.lua_gettop(L);
  462. if (count == 1)
  463. {
  464. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  465. int o = obj.DOKill();
  466. LuaDLL.lua_pushinteger(L, o);
  467. return 1;
  468. }
  469. else if (count == 2)
  470. {
  471. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  472. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  473. int o = obj.DOKill(arg0);
  474. LuaDLL.lua_pushinteger(L, o);
  475. return 1;
  476. }
  477. else
  478. {
  479. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Light.DOKill");
  480. }
  481. }
  482. catch (Exception e)
  483. {
  484. return LuaDLL.toluaL_exception(L, e);
  485. }
  486. }
  487. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  488. static int DOComplete(IntPtr L)
  489. {
  490. try
  491. {
  492. int count = LuaDLL.lua_gettop(L);
  493. if (count == 1)
  494. {
  495. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  496. int o = obj.DOComplete();
  497. LuaDLL.lua_pushinteger(L, o);
  498. return 1;
  499. }
  500. else if (count == 2)
  501. {
  502. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  503. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  504. int o = obj.DOComplete(arg0);
  505. LuaDLL.lua_pushinteger(L, o);
  506. return 1;
  507. }
  508. else
  509. {
  510. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Light.DOComplete");
  511. }
  512. }
  513. catch (Exception e)
  514. {
  515. return LuaDLL.toluaL_exception(L, e);
  516. }
  517. }
  518. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  519. static int DOBlendableColor(IntPtr L)
  520. {
  521. try
  522. {
  523. ToLua.CheckArgsCount(L, 3);
  524. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  525. UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
  526. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  527. DG.Tweening.Tweener o = obj.DOBlendableColor(arg0, arg1);
  528. ToLua.PushObject(L, o);
  529. return 1;
  530. }
  531. catch (Exception e)
  532. {
  533. return LuaDLL.toluaL_exception(L, e);
  534. }
  535. }
  536. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  537. static int DOShadowStrength(IntPtr L)
  538. {
  539. try
  540. {
  541. ToLua.CheckArgsCount(L, 3);
  542. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  543. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  544. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  545. DG.Tweening.Core.TweenerCore<float,float,DG.Tweening.Plugins.Options.FloatOptions> o = obj.DOShadowStrength(arg0, arg1);
  546. ToLua.PushObject(L, o);
  547. return 1;
  548. }
  549. catch (Exception e)
  550. {
  551. return LuaDLL.toluaL_exception(L, e);
  552. }
  553. }
  554. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  555. static int DOIntensity(IntPtr L)
  556. {
  557. try
  558. {
  559. ToLua.CheckArgsCount(L, 3);
  560. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  561. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  562. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  563. DG.Tweening.Core.TweenerCore<float,float,DG.Tweening.Plugins.Options.FloatOptions> o = obj.DOIntensity(arg0, arg1);
  564. ToLua.PushObject(L, o);
  565. return 1;
  566. }
  567. catch (Exception e)
  568. {
  569. return LuaDLL.toluaL_exception(L, e);
  570. }
  571. }
  572. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  573. static int DOColor(IntPtr L)
  574. {
  575. try
  576. {
  577. ToLua.CheckArgsCount(L, 3);
  578. UnityEngine.Light obj = (UnityEngine.Light)ToLua.CheckObject(L, 1, typeof(UnityEngine.Light));
  579. UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
  580. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  581. DG.Tweening.Core.TweenerCore<UnityEngine.Color,UnityEngine.Color,DG.Tweening.Plugins.Options.ColorOptions> o = obj.DOColor(arg0, arg1);
  582. ToLua.PushObject(L, o);
  583. return 1;
  584. }
  585. catch (Exception e)
  586. {
  587. return LuaDLL.toluaL_exception(L, e);
  588. }
  589. }
  590. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  591. static int op_Equality(IntPtr L)
  592. {
  593. try
  594. {
  595. ToLua.CheckArgsCount(L, 2);
  596. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  597. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  598. bool o = arg0 == arg1;
  599. LuaDLL.lua_pushboolean(L, o);
  600. return 1;
  601. }
  602. catch (Exception e)
  603. {
  604. return LuaDLL.toluaL_exception(L, e);
  605. }
  606. }
  607. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  608. static int get_type(IntPtr L)
  609. {
  610. object o = null;
  611. try
  612. {
  613. o = ToLua.ToObject(L, 1);
  614. UnityEngine.Light obj = (UnityEngine.Light)o;
  615. UnityEngine.LightType ret = obj.type;
  616. ToLua.Push(L, ret);
  617. return 1;
  618. }
  619. catch(Exception e)
  620. {
  621. return LuaDLL.toluaL_exception(L, e, o, "attempt to index type on a nil value");
  622. }
  623. }
  624. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  625. static int get_spotAngle(IntPtr L)
  626. {
  627. object o = null;
  628. try
  629. {
  630. o = ToLua.ToObject(L, 1);
  631. UnityEngine.Light obj = (UnityEngine.Light)o;
  632. float ret = obj.spotAngle;
  633. LuaDLL.lua_pushnumber(L, ret);
  634. return 1;
  635. }
  636. catch(Exception e)
  637. {
  638. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spotAngle on a nil value");
  639. }
  640. }
  641. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  642. static int get_color(IntPtr L)
  643. {
  644. object o = null;
  645. try
  646. {
  647. o = ToLua.ToObject(L, 1);
  648. UnityEngine.Light obj = (UnityEngine.Light)o;
  649. UnityEngine.Color ret = obj.color;
  650. ToLua.Push(L, ret);
  651. return 1;
  652. }
  653. catch(Exception e)
  654. {
  655. return LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value");
  656. }
  657. }
  658. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  659. static int get_colorTemperature(IntPtr L)
  660. {
  661. object o = null;
  662. try
  663. {
  664. o = ToLua.ToObject(L, 1);
  665. UnityEngine.Light obj = (UnityEngine.Light)o;
  666. float ret = obj.colorTemperature;
  667. LuaDLL.lua_pushnumber(L, ret);
  668. return 1;
  669. }
  670. catch(Exception e)
  671. {
  672. return LuaDLL.toluaL_exception(L, e, o, "attempt to index colorTemperature on a nil value");
  673. }
  674. }
  675. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  676. static int get_intensity(IntPtr L)
  677. {
  678. object o = null;
  679. try
  680. {
  681. o = ToLua.ToObject(L, 1);
  682. UnityEngine.Light obj = (UnityEngine.Light)o;
  683. float ret = obj.intensity;
  684. LuaDLL.lua_pushnumber(L, ret);
  685. return 1;
  686. }
  687. catch(Exception e)
  688. {
  689. return LuaDLL.toluaL_exception(L, e, o, "attempt to index intensity on a nil value");
  690. }
  691. }
  692. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  693. static int get_bounceIntensity(IntPtr L)
  694. {
  695. object o = null;
  696. try
  697. {
  698. o = ToLua.ToObject(L, 1);
  699. UnityEngine.Light obj = (UnityEngine.Light)o;
  700. float ret = obj.bounceIntensity;
  701. LuaDLL.lua_pushnumber(L, ret);
  702. return 1;
  703. }
  704. catch(Exception e)
  705. {
  706. return LuaDLL.toluaL_exception(L, e, o, "attempt to index bounceIntensity on a nil value");
  707. }
  708. }
  709. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  710. static int get_shadowCustomResolution(IntPtr L)
  711. {
  712. object o = null;
  713. try
  714. {
  715. o = ToLua.ToObject(L, 1);
  716. UnityEngine.Light obj = (UnityEngine.Light)o;
  717. int ret = obj.shadowCustomResolution;
  718. LuaDLL.lua_pushinteger(L, ret);
  719. return 1;
  720. }
  721. catch(Exception e)
  722. {
  723. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowCustomResolution on a nil value");
  724. }
  725. }
  726. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  727. static int get_shadowBias(IntPtr L)
  728. {
  729. object o = null;
  730. try
  731. {
  732. o = ToLua.ToObject(L, 1);
  733. UnityEngine.Light obj = (UnityEngine.Light)o;
  734. float ret = obj.shadowBias;
  735. LuaDLL.lua_pushnumber(L, ret);
  736. return 1;
  737. }
  738. catch(Exception e)
  739. {
  740. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowBias on a nil value");
  741. }
  742. }
  743. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  744. static int get_shadowNormalBias(IntPtr L)
  745. {
  746. object o = null;
  747. try
  748. {
  749. o = ToLua.ToObject(L, 1);
  750. UnityEngine.Light obj = (UnityEngine.Light)o;
  751. float ret = obj.shadowNormalBias;
  752. LuaDLL.lua_pushnumber(L, ret);
  753. return 1;
  754. }
  755. catch(Exception e)
  756. {
  757. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowNormalBias on a nil value");
  758. }
  759. }
  760. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  761. static int get_shadowNearPlane(IntPtr L)
  762. {
  763. object o = null;
  764. try
  765. {
  766. o = ToLua.ToObject(L, 1);
  767. UnityEngine.Light obj = (UnityEngine.Light)o;
  768. float ret = obj.shadowNearPlane;
  769. LuaDLL.lua_pushnumber(L, ret);
  770. return 1;
  771. }
  772. catch(Exception e)
  773. {
  774. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowNearPlane on a nil value");
  775. }
  776. }
  777. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  778. static int get_range(IntPtr L)
  779. {
  780. object o = null;
  781. try
  782. {
  783. o = ToLua.ToObject(L, 1);
  784. UnityEngine.Light obj = (UnityEngine.Light)o;
  785. float ret = obj.range;
  786. LuaDLL.lua_pushnumber(L, ret);
  787. return 1;
  788. }
  789. catch(Exception e)
  790. {
  791. return LuaDLL.toluaL_exception(L, e, o, "attempt to index range on a nil value");
  792. }
  793. }
  794. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  795. static int get_flare(IntPtr L)
  796. {
  797. object o = null;
  798. try
  799. {
  800. o = ToLua.ToObject(L, 1);
  801. UnityEngine.Light obj = (UnityEngine.Light)o;
  802. UnityEngine.Flare ret = obj.flare;
  803. ToLua.PushSealed(L, ret);
  804. return 1;
  805. }
  806. catch(Exception e)
  807. {
  808. return LuaDLL.toluaL_exception(L, e, o, "attempt to index flare on a nil value");
  809. }
  810. }
  811. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  812. static int get_bakingOutput(IntPtr L)
  813. {
  814. object o = null;
  815. try
  816. {
  817. o = ToLua.ToObject(L, 1);
  818. UnityEngine.Light obj = (UnityEngine.Light)o;
  819. UnityEngine.LightBakingOutput ret = obj.bakingOutput;
  820. ToLua.PushValue(L, ret);
  821. return 1;
  822. }
  823. catch(Exception e)
  824. {
  825. return LuaDLL.toluaL_exception(L, e, o, "attempt to index bakingOutput on a nil value");
  826. }
  827. }
  828. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  829. static int get_cullingMask(IntPtr L)
  830. {
  831. object o = null;
  832. try
  833. {
  834. o = ToLua.ToObject(L, 1);
  835. UnityEngine.Light obj = (UnityEngine.Light)o;
  836. int ret = obj.cullingMask;
  837. LuaDLL.lua_pushinteger(L, ret);
  838. return 1;
  839. }
  840. catch(Exception e)
  841. {
  842. return LuaDLL.toluaL_exception(L, e, o, "attempt to index cullingMask on a nil value");
  843. }
  844. }
  845. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  846. static int get_lightShadowCasterMode(IntPtr L)
  847. {
  848. object o = null;
  849. try
  850. {
  851. o = ToLua.ToObject(L, 1);
  852. UnityEngine.Light obj = (UnityEngine.Light)o;
  853. UnityEngine.LightShadowCasterMode ret = obj.lightShadowCasterMode;
  854. ToLua.Push(L, ret);
  855. return 1;
  856. }
  857. catch(Exception e)
  858. {
  859. return LuaDLL.toluaL_exception(L, e, o, "attempt to index lightShadowCasterMode on a nil value");
  860. }
  861. }
  862. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  863. static int get_shadows(IntPtr L)
  864. {
  865. object o = null;
  866. try
  867. {
  868. o = ToLua.ToObject(L, 1);
  869. UnityEngine.Light obj = (UnityEngine.Light)o;
  870. UnityEngine.LightShadows ret = obj.shadows;
  871. ToLua.Push(L, ret);
  872. return 1;
  873. }
  874. catch(Exception e)
  875. {
  876. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadows on a nil value");
  877. }
  878. }
  879. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  880. static int get_shadowStrength(IntPtr L)
  881. {
  882. object o = null;
  883. try
  884. {
  885. o = ToLua.ToObject(L, 1);
  886. UnityEngine.Light obj = (UnityEngine.Light)o;
  887. float ret = obj.shadowStrength;
  888. LuaDLL.lua_pushnumber(L, ret);
  889. return 1;
  890. }
  891. catch(Exception e)
  892. {
  893. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowStrength on a nil value");
  894. }
  895. }
  896. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  897. static int get_shadowResolution(IntPtr L)
  898. {
  899. object o = null;
  900. try
  901. {
  902. o = ToLua.ToObject(L, 1);
  903. UnityEngine.Light obj = (UnityEngine.Light)o;
  904. UnityEngine.Rendering.LightShadowResolution ret = obj.shadowResolution;
  905. ToLua.Push(L, ret);
  906. return 1;
  907. }
  908. catch(Exception e)
  909. {
  910. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowResolution on a nil value");
  911. }
  912. }
  913. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  914. static int get_layerShadowCullDistances(IntPtr L)
  915. {
  916. object o = null;
  917. try
  918. {
  919. o = ToLua.ToObject(L, 1);
  920. UnityEngine.Light obj = (UnityEngine.Light)o;
  921. float[] ret = obj.layerShadowCullDistances;
  922. ToLua.Push(L, ret);
  923. return 1;
  924. }
  925. catch(Exception e)
  926. {
  927. return LuaDLL.toluaL_exception(L, e, o, "attempt to index layerShadowCullDistances on a nil value");
  928. }
  929. }
  930. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  931. static int get_cookieSize(IntPtr L)
  932. {
  933. object o = null;
  934. try
  935. {
  936. o = ToLua.ToObject(L, 1);
  937. UnityEngine.Light obj = (UnityEngine.Light)o;
  938. float ret = obj.cookieSize;
  939. LuaDLL.lua_pushnumber(L, ret);
  940. return 1;
  941. }
  942. catch(Exception e)
  943. {
  944. return LuaDLL.toluaL_exception(L, e, o, "attempt to index cookieSize on a nil value");
  945. }
  946. }
  947. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  948. static int get_cookie(IntPtr L)
  949. {
  950. object o = null;
  951. try
  952. {
  953. o = ToLua.ToObject(L, 1);
  954. UnityEngine.Light obj = (UnityEngine.Light)o;
  955. UnityEngine.Texture ret = obj.cookie;
  956. ToLua.Push(L, ret);
  957. return 1;
  958. }
  959. catch(Exception e)
  960. {
  961. return LuaDLL.toluaL_exception(L, e, o, "attempt to index cookie on a nil value");
  962. }
  963. }
  964. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  965. static int get_renderMode(IntPtr L)
  966. {
  967. object o = null;
  968. try
  969. {
  970. o = ToLua.ToObject(L, 1);
  971. UnityEngine.Light obj = (UnityEngine.Light)o;
  972. UnityEngine.LightRenderMode ret = obj.renderMode;
  973. ToLua.Push(L, ret);
  974. return 1;
  975. }
  976. catch(Exception e)
  977. {
  978. return LuaDLL.toluaL_exception(L, e, o, "attempt to index renderMode on a nil value");
  979. }
  980. }
  981. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  982. static int get_commandBufferCount(IntPtr L)
  983. {
  984. object o = null;
  985. try
  986. {
  987. o = ToLua.ToObject(L, 1);
  988. UnityEngine.Light obj = (UnityEngine.Light)o;
  989. int ret = obj.commandBufferCount;
  990. LuaDLL.lua_pushinteger(L, ret);
  991. return 1;
  992. }
  993. catch(Exception e)
  994. {
  995. return LuaDLL.toluaL_exception(L, e, o, "attempt to index commandBufferCount on a nil value");
  996. }
  997. }
  998. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  999. static int set_type(IntPtr L)
  1000. {
  1001. object o = null;
  1002. try
  1003. {
  1004. o = ToLua.ToObject(L, 1);
  1005. UnityEngine.Light obj = (UnityEngine.Light)o;
  1006. UnityEngine.LightType arg0 = (UnityEngine.LightType)ToLua.CheckObject(L, 2, typeof(UnityEngine.LightType));
  1007. obj.type = arg0;
  1008. return 0;
  1009. }
  1010. catch(Exception e)
  1011. {
  1012. return LuaDLL.toluaL_exception(L, e, o, "attempt to index type on a nil value");
  1013. }
  1014. }
  1015. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1016. static int set_spotAngle(IntPtr L)
  1017. {
  1018. object o = null;
  1019. try
  1020. {
  1021. o = ToLua.ToObject(L, 1);
  1022. UnityEngine.Light obj = (UnityEngine.Light)o;
  1023. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1024. obj.spotAngle = arg0;
  1025. return 0;
  1026. }
  1027. catch(Exception e)
  1028. {
  1029. return LuaDLL.toluaL_exception(L, e, o, "attempt to index spotAngle on a nil value");
  1030. }
  1031. }
  1032. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1033. static int set_color(IntPtr L)
  1034. {
  1035. object o = null;
  1036. try
  1037. {
  1038. o = ToLua.ToObject(L, 1);
  1039. UnityEngine.Light obj = (UnityEngine.Light)o;
  1040. UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
  1041. obj.color = arg0;
  1042. return 0;
  1043. }
  1044. catch(Exception e)
  1045. {
  1046. return LuaDLL.toluaL_exception(L, e, o, "attempt to index color on a nil value");
  1047. }
  1048. }
  1049. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1050. static int set_colorTemperature(IntPtr L)
  1051. {
  1052. object o = null;
  1053. try
  1054. {
  1055. o = ToLua.ToObject(L, 1);
  1056. UnityEngine.Light obj = (UnityEngine.Light)o;
  1057. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1058. obj.colorTemperature = arg0;
  1059. return 0;
  1060. }
  1061. catch(Exception e)
  1062. {
  1063. return LuaDLL.toluaL_exception(L, e, o, "attempt to index colorTemperature on a nil value");
  1064. }
  1065. }
  1066. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1067. static int set_intensity(IntPtr L)
  1068. {
  1069. object o = null;
  1070. try
  1071. {
  1072. o = ToLua.ToObject(L, 1);
  1073. UnityEngine.Light obj = (UnityEngine.Light)o;
  1074. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1075. obj.intensity = arg0;
  1076. return 0;
  1077. }
  1078. catch(Exception e)
  1079. {
  1080. return LuaDLL.toluaL_exception(L, e, o, "attempt to index intensity on a nil value");
  1081. }
  1082. }
  1083. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1084. static int set_bounceIntensity(IntPtr L)
  1085. {
  1086. object o = null;
  1087. try
  1088. {
  1089. o = ToLua.ToObject(L, 1);
  1090. UnityEngine.Light obj = (UnityEngine.Light)o;
  1091. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1092. obj.bounceIntensity = arg0;
  1093. return 0;
  1094. }
  1095. catch(Exception e)
  1096. {
  1097. return LuaDLL.toluaL_exception(L, e, o, "attempt to index bounceIntensity on a nil value");
  1098. }
  1099. }
  1100. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1101. static int set_shadowCustomResolution(IntPtr L)
  1102. {
  1103. object o = null;
  1104. try
  1105. {
  1106. o = ToLua.ToObject(L, 1);
  1107. UnityEngine.Light obj = (UnityEngine.Light)o;
  1108. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1109. obj.shadowCustomResolution = arg0;
  1110. return 0;
  1111. }
  1112. catch(Exception e)
  1113. {
  1114. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowCustomResolution on a nil value");
  1115. }
  1116. }
  1117. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1118. static int set_shadowBias(IntPtr L)
  1119. {
  1120. object o = null;
  1121. try
  1122. {
  1123. o = ToLua.ToObject(L, 1);
  1124. UnityEngine.Light obj = (UnityEngine.Light)o;
  1125. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1126. obj.shadowBias = arg0;
  1127. return 0;
  1128. }
  1129. catch(Exception e)
  1130. {
  1131. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowBias on a nil value");
  1132. }
  1133. }
  1134. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1135. static int set_shadowNormalBias(IntPtr L)
  1136. {
  1137. object o = null;
  1138. try
  1139. {
  1140. o = ToLua.ToObject(L, 1);
  1141. UnityEngine.Light obj = (UnityEngine.Light)o;
  1142. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1143. obj.shadowNormalBias = arg0;
  1144. return 0;
  1145. }
  1146. catch(Exception e)
  1147. {
  1148. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowNormalBias on a nil value");
  1149. }
  1150. }
  1151. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1152. static int set_shadowNearPlane(IntPtr L)
  1153. {
  1154. object o = null;
  1155. try
  1156. {
  1157. o = ToLua.ToObject(L, 1);
  1158. UnityEngine.Light obj = (UnityEngine.Light)o;
  1159. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1160. obj.shadowNearPlane = arg0;
  1161. return 0;
  1162. }
  1163. catch(Exception e)
  1164. {
  1165. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowNearPlane on a nil value");
  1166. }
  1167. }
  1168. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1169. static int set_range(IntPtr L)
  1170. {
  1171. object o = null;
  1172. try
  1173. {
  1174. o = ToLua.ToObject(L, 1);
  1175. UnityEngine.Light obj = (UnityEngine.Light)o;
  1176. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1177. obj.range = arg0;
  1178. return 0;
  1179. }
  1180. catch(Exception e)
  1181. {
  1182. return LuaDLL.toluaL_exception(L, e, o, "attempt to index range on a nil value");
  1183. }
  1184. }
  1185. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1186. static int set_flare(IntPtr L)
  1187. {
  1188. object o = null;
  1189. try
  1190. {
  1191. o = ToLua.ToObject(L, 1);
  1192. UnityEngine.Light obj = (UnityEngine.Light)o;
  1193. UnityEngine.Flare arg0 = (UnityEngine.Flare)ToLua.CheckObject(L, 2, typeof(UnityEngine.Flare));
  1194. obj.flare = arg0;
  1195. return 0;
  1196. }
  1197. catch(Exception e)
  1198. {
  1199. return LuaDLL.toluaL_exception(L, e, o, "attempt to index flare on a nil value");
  1200. }
  1201. }
  1202. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1203. static int set_bakingOutput(IntPtr L)
  1204. {
  1205. object o = null;
  1206. try
  1207. {
  1208. o = ToLua.ToObject(L, 1);
  1209. UnityEngine.Light obj = (UnityEngine.Light)o;
  1210. UnityEngine.LightBakingOutput arg0 = StackTraits<UnityEngine.LightBakingOutput>.Check(L, 2);
  1211. obj.bakingOutput = arg0;
  1212. return 0;
  1213. }
  1214. catch(Exception e)
  1215. {
  1216. return LuaDLL.toluaL_exception(L, e, o, "attempt to index bakingOutput on a nil value");
  1217. }
  1218. }
  1219. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1220. static int set_cullingMask(IntPtr L)
  1221. {
  1222. object o = null;
  1223. try
  1224. {
  1225. o = ToLua.ToObject(L, 1);
  1226. UnityEngine.Light obj = (UnityEngine.Light)o;
  1227. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  1228. obj.cullingMask = arg0;
  1229. return 0;
  1230. }
  1231. catch(Exception e)
  1232. {
  1233. return LuaDLL.toluaL_exception(L, e, o, "attempt to index cullingMask on a nil value");
  1234. }
  1235. }
  1236. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1237. static int set_lightShadowCasterMode(IntPtr L)
  1238. {
  1239. object o = null;
  1240. try
  1241. {
  1242. o = ToLua.ToObject(L, 1);
  1243. UnityEngine.Light obj = (UnityEngine.Light)o;
  1244. UnityEngine.LightShadowCasterMode arg0 = (UnityEngine.LightShadowCasterMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.LightShadowCasterMode));
  1245. obj.lightShadowCasterMode = arg0;
  1246. return 0;
  1247. }
  1248. catch(Exception e)
  1249. {
  1250. return LuaDLL.toluaL_exception(L, e, o, "attempt to index lightShadowCasterMode on a nil value");
  1251. }
  1252. }
  1253. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1254. static int set_shadows(IntPtr L)
  1255. {
  1256. object o = null;
  1257. try
  1258. {
  1259. o = ToLua.ToObject(L, 1);
  1260. UnityEngine.Light obj = (UnityEngine.Light)o;
  1261. UnityEngine.LightShadows arg0 = (UnityEngine.LightShadows)ToLua.CheckObject(L, 2, typeof(UnityEngine.LightShadows));
  1262. obj.shadows = arg0;
  1263. return 0;
  1264. }
  1265. catch(Exception e)
  1266. {
  1267. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadows on a nil value");
  1268. }
  1269. }
  1270. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1271. static int set_shadowStrength(IntPtr L)
  1272. {
  1273. object o = null;
  1274. try
  1275. {
  1276. o = ToLua.ToObject(L, 1);
  1277. UnityEngine.Light obj = (UnityEngine.Light)o;
  1278. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1279. obj.shadowStrength = arg0;
  1280. return 0;
  1281. }
  1282. catch(Exception e)
  1283. {
  1284. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowStrength on a nil value");
  1285. }
  1286. }
  1287. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1288. static int set_shadowResolution(IntPtr L)
  1289. {
  1290. object o = null;
  1291. try
  1292. {
  1293. o = ToLua.ToObject(L, 1);
  1294. UnityEngine.Light obj = (UnityEngine.Light)o;
  1295. UnityEngine.Rendering.LightShadowResolution arg0 = (UnityEngine.Rendering.LightShadowResolution)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.LightShadowResolution));
  1296. obj.shadowResolution = arg0;
  1297. return 0;
  1298. }
  1299. catch(Exception e)
  1300. {
  1301. return LuaDLL.toluaL_exception(L, e, o, "attempt to index shadowResolution on a nil value");
  1302. }
  1303. }
  1304. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1305. static int set_layerShadowCullDistances(IntPtr L)
  1306. {
  1307. object o = null;
  1308. try
  1309. {
  1310. o = ToLua.ToObject(L, 1);
  1311. UnityEngine.Light obj = (UnityEngine.Light)o;
  1312. float[] arg0 = ToLua.CheckNumberArray<float>(L, 2);
  1313. obj.layerShadowCullDistances = arg0;
  1314. return 0;
  1315. }
  1316. catch(Exception e)
  1317. {
  1318. return LuaDLL.toluaL_exception(L, e, o, "attempt to index layerShadowCullDistances on a nil value");
  1319. }
  1320. }
  1321. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1322. static int set_cookieSize(IntPtr L)
  1323. {
  1324. object o = null;
  1325. try
  1326. {
  1327. o = ToLua.ToObject(L, 1);
  1328. UnityEngine.Light obj = (UnityEngine.Light)o;
  1329. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  1330. obj.cookieSize = arg0;
  1331. return 0;
  1332. }
  1333. catch(Exception e)
  1334. {
  1335. return LuaDLL.toluaL_exception(L, e, o, "attempt to index cookieSize on a nil value");
  1336. }
  1337. }
  1338. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1339. static int set_cookie(IntPtr L)
  1340. {
  1341. object o = null;
  1342. try
  1343. {
  1344. o = ToLua.ToObject(L, 1);
  1345. UnityEngine.Light obj = (UnityEngine.Light)o;
  1346. UnityEngine.Texture arg0 = (UnityEngine.Texture)ToLua.CheckObject<UnityEngine.Texture>(L, 2);
  1347. obj.cookie = arg0;
  1348. return 0;
  1349. }
  1350. catch(Exception e)
  1351. {
  1352. return LuaDLL.toluaL_exception(L, e, o, "attempt to index cookie on a nil value");
  1353. }
  1354. }
  1355. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1356. static int set_renderMode(IntPtr L)
  1357. {
  1358. object o = null;
  1359. try
  1360. {
  1361. o = ToLua.ToObject(L, 1);
  1362. UnityEngine.Light obj = (UnityEngine.Light)o;
  1363. UnityEngine.LightRenderMode arg0 = (UnityEngine.LightRenderMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.LightRenderMode));
  1364. obj.renderMode = arg0;
  1365. return 0;
  1366. }
  1367. catch(Exception e)
  1368. {
  1369. return LuaDLL.toluaL_exception(L, e, o, "attempt to index renderMode on a nil value");
  1370. }
  1371. }
  1372. }