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

3166 lines
85 KiB

  1. //this source code was auto-generated by tolua#, do not modify it
  2. using System;
  3. using LuaInterface;
  4. public class UnityEngine_CameraWrap
  5. {
  6. public static void Register(LuaState L)
  7. {
  8. L.BeginClass(typeof(UnityEngine.Camera), typeof(UnityEngine.Behaviour));
  9. L.RegFunction("Reset", Reset);
  10. L.RegFunction("ResetTransparencySortSettings", ResetTransparencySortSettings);
  11. L.RegFunction("ResetAspect", ResetAspect);
  12. L.RegFunction("ResetCullingMatrix", ResetCullingMatrix);
  13. L.RegFunction("SetReplacementShader", SetReplacementShader);
  14. L.RegFunction("ResetReplacementShader", ResetReplacementShader);
  15. L.RegFunction("SetTargetBuffers", SetTargetBuffers);
  16. L.RegFunction("ResetWorldToCameraMatrix", ResetWorldToCameraMatrix);
  17. L.RegFunction("ResetProjectionMatrix", ResetProjectionMatrix);
  18. L.RegFunction("CalculateObliqueMatrix", CalculateObliqueMatrix);
  19. L.RegFunction("WorldToScreenPoint", WorldToScreenPoint);
  20. L.RegFunction("WorldToViewportPoint", WorldToViewportPoint);
  21. L.RegFunction("ViewportToWorldPoint", ViewportToWorldPoint);
  22. L.RegFunction("ScreenToWorldPoint", ScreenToWorldPoint);
  23. L.RegFunction("ScreenToViewportPoint", ScreenToViewportPoint);
  24. L.RegFunction("ViewportToScreenPoint", ViewportToScreenPoint);
  25. L.RegFunction("ViewportPointToRay", ViewportPointToRay);
  26. L.RegFunction("ScreenPointToRay", ScreenPointToRay);
  27. L.RegFunction("CalculateFrustumCorners", CalculateFrustumCorners);
  28. L.RegFunction("CalculateProjectionMatrixFromPhysicalProperties", CalculateProjectionMatrixFromPhysicalProperties);
  29. L.RegFunction("FocalLengthToFOV", FocalLengthToFOV);
  30. L.RegFunction("FOVToFocalLength", FOVToFocalLength);
  31. L.RegFunction("GetStereoNonJitteredProjectionMatrix", GetStereoNonJitteredProjectionMatrix);
  32. L.RegFunction("GetStereoViewMatrix", GetStereoViewMatrix);
  33. L.RegFunction("CopyStereoDeviceProjectionMatrixToNonJittered", CopyStereoDeviceProjectionMatrixToNonJittered);
  34. L.RegFunction("GetStereoProjectionMatrix", GetStereoProjectionMatrix);
  35. L.RegFunction("SetStereoProjectionMatrix", SetStereoProjectionMatrix);
  36. L.RegFunction("ResetStereoProjectionMatrices", ResetStereoProjectionMatrices);
  37. L.RegFunction("SetStereoViewMatrix", SetStereoViewMatrix);
  38. L.RegFunction("ResetStereoViewMatrices", ResetStereoViewMatrices);
  39. L.RegFunction("GetAllCameras", GetAllCameras);
  40. L.RegFunction("RenderToCubemap", RenderToCubemap);
  41. L.RegFunction("Render", Render);
  42. L.RegFunction("RenderWithShader", RenderWithShader);
  43. L.RegFunction("RenderDontRestore", RenderDontRestore);
  44. L.RegFunction("SetupCurrent", SetupCurrent);
  45. L.RegFunction("CopyFrom", CopyFrom);
  46. L.RegFunction("RemoveCommandBuffers", RemoveCommandBuffers);
  47. L.RegFunction("RemoveAllCommandBuffers", RemoveAllCommandBuffers);
  48. L.RegFunction("AddCommandBuffer", AddCommandBuffer);
  49. L.RegFunction("AddCommandBufferAsync", AddCommandBufferAsync);
  50. L.RegFunction("RemoveCommandBuffer", RemoveCommandBuffer);
  51. L.RegFunction("GetCommandBuffers", GetCommandBuffers);
  52. L.RegFunction("New", _CreateUnityEngine_Camera);
  53. L.RegFunction("__eq", op_Equality);
  54. L.RegFunction("__tostring", ToLua.op_ToString);
  55. L.RegVar("onPreCull", get_onPreCull, set_onPreCull);
  56. L.RegVar("onPreRender", get_onPreRender, set_onPreRender);
  57. L.RegVar("onPostRender", get_onPostRender, set_onPostRender);
  58. L.RegVar("nearClipPlane", get_nearClipPlane, set_nearClipPlane);
  59. L.RegVar("farClipPlane", get_farClipPlane, set_farClipPlane);
  60. L.RegVar("fieldOfView", get_fieldOfView, set_fieldOfView);
  61. L.RegVar("renderingPath", get_renderingPath, set_renderingPath);
  62. L.RegVar("actualRenderingPath", get_actualRenderingPath, null);
  63. L.RegVar("allowHDR", get_allowHDR, set_allowHDR);
  64. L.RegVar("allowMSAA", get_allowMSAA, set_allowMSAA);
  65. L.RegVar("allowDynamicResolution", get_allowDynamicResolution, set_allowDynamicResolution);
  66. L.RegVar("forceIntoRenderTexture", get_forceIntoRenderTexture, set_forceIntoRenderTexture);
  67. L.RegVar("orthographicSize", get_orthographicSize, set_orthographicSize);
  68. L.RegVar("orthographic", get_orthographic, set_orthographic);
  69. L.RegVar("opaqueSortMode", get_opaqueSortMode, set_opaqueSortMode);
  70. L.RegVar("transparencySortMode", get_transparencySortMode, set_transparencySortMode);
  71. L.RegVar("transparencySortAxis", get_transparencySortAxis, set_transparencySortAxis);
  72. L.RegVar("depth", get_depth, set_depth);
  73. L.RegVar("aspect", get_aspect, set_aspect);
  74. L.RegVar("velocity", get_velocity, null);
  75. L.RegVar("cullingMask", get_cullingMask, set_cullingMask);
  76. L.RegVar("eventMask", get_eventMask, set_eventMask);
  77. L.RegVar("layerCullSpherical", get_layerCullSpherical, set_layerCullSpherical);
  78. L.RegVar("cameraType", get_cameraType, set_cameraType);
  79. L.RegVar("layerCullDistances", get_layerCullDistances, set_layerCullDistances);
  80. L.RegVar("useOcclusionCulling", get_useOcclusionCulling, set_useOcclusionCulling);
  81. L.RegVar("cullingMatrix", get_cullingMatrix, set_cullingMatrix);
  82. L.RegVar("backgroundColor", get_backgroundColor, set_backgroundColor);
  83. L.RegVar("clearFlags", get_clearFlags, set_clearFlags);
  84. L.RegVar("depthTextureMode", get_depthTextureMode, set_depthTextureMode);
  85. L.RegVar("clearStencilAfterLightingPass", get_clearStencilAfterLightingPass, set_clearStencilAfterLightingPass);
  86. L.RegVar("usePhysicalProperties", get_usePhysicalProperties, set_usePhysicalProperties);
  87. L.RegVar("sensorSize", get_sensorSize, set_sensorSize);
  88. L.RegVar("lensShift", get_lensShift, set_lensShift);
  89. L.RegVar("focalLength", get_focalLength, set_focalLength);
  90. L.RegVar("gateFit", get_gateFit, set_gateFit);
  91. L.RegVar("rect", get_rect, set_rect);
  92. L.RegVar("pixelRect", get_pixelRect, set_pixelRect);
  93. L.RegVar("pixelWidth", get_pixelWidth, null);
  94. L.RegVar("pixelHeight", get_pixelHeight, null);
  95. L.RegVar("scaledPixelWidth", get_scaledPixelWidth, null);
  96. L.RegVar("scaledPixelHeight", get_scaledPixelHeight, null);
  97. L.RegVar("targetTexture", get_targetTexture, set_targetTexture);
  98. L.RegVar("activeTexture", get_activeTexture, null);
  99. L.RegVar("targetDisplay", get_targetDisplay, set_targetDisplay);
  100. L.RegVar("cameraToWorldMatrix", get_cameraToWorldMatrix, null);
  101. L.RegVar("worldToCameraMatrix", get_worldToCameraMatrix, set_worldToCameraMatrix);
  102. L.RegVar("projectionMatrix", get_projectionMatrix, set_projectionMatrix);
  103. L.RegVar("nonJitteredProjectionMatrix", get_nonJitteredProjectionMatrix, set_nonJitteredProjectionMatrix);
  104. L.RegVar("useJitteredProjectionMatrixForTransparentRendering", get_useJitteredProjectionMatrixForTransparentRendering, set_useJitteredProjectionMatrixForTransparentRendering);
  105. L.RegVar("previousViewProjectionMatrix", get_previousViewProjectionMatrix, null);
  106. L.RegVar("main", get_main, null);
  107. L.RegVar("current", get_current, null);
  108. L.RegVar("scene", get_scene, set_scene);
  109. L.RegVar("stereoEnabled", get_stereoEnabled, null);
  110. L.RegVar("stereoSeparation", get_stereoSeparation, set_stereoSeparation);
  111. L.RegVar("stereoConvergence", get_stereoConvergence, set_stereoConvergence);
  112. L.RegVar("areVRStereoViewMatricesWithinSingleCullTolerance", get_areVRStereoViewMatricesWithinSingleCullTolerance, null);
  113. L.RegVar("stereoTargetEye", get_stereoTargetEye, set_stereoTargetEye);
  114. L.RegVar("stereoActiveEye", get_stereoActiveEye, null);
  115. L.RegVar("allCamerasCount", get_allCamerasCount, null);
  116. L.RegVar("allCameras", get_allCameras, null);
  117. L.RegVar("commandBufferCount", get_commandBufferCount, null);
  118. L.RegFunction("CameraCallback", UnityEngine_Camera_CameraCallback);
  119. L.EndClass();
  120. }
  121. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  122. static int _CreateUnityEngine_Camera(IntPtr L)
  123. {
  124. try
  125. {
  126. int count = LuaDLL.lua_gettop(L);
  127. if (count == 0)
  128. {
  129. UnityEngine.Camera obj = new UnityEngine.Camera();
  130. ToLua.Push(L, obj);
  131. return 1;
  132. }
  133. else
  134. {
  135. return LuaDLL.luaL_throw(L, "invalid arguments to ctor method: UnityEngine.Camera.New");
  136. }
  137. }
  138. catch(Exception e)
  139. {
  140. return LuaDLL.toluaL_exception(L, e);
  141. }
  142. }
  143. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  144. static int Reset(IntPtr L)
  145. {
  146. try
  147. {
  148. ToLua.CheckArgsCount(L, 1);
  149. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  150. obj.Reset();
  151. return 0;
  152. }
  153. catch(Exception e)
  154. {
  155. return LuaDLL.toluaL_exception(L, e);
  156. }
  157. }
  158. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  159. static int ResetTransparencySortSettings(IntPtr L)
  160. {
  161. try
  162. {
  163. ToLua.CheckArgsCount(L, 1);
  164. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  165. obj.ResetTransparencySortSettings();
  166. return 0;
  167. }
  168. catch(Exception e)
  169. {
  170. return LuaDLL.toluaL_exception(L, e);
  171. }
  172. }
  173. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  174. static int ResetAspect(IntPtr L)
  175. {
  176. try
  177. {
  178. ToLua.CheckArgsCount(L, 1);
  179. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  180. obj.ResetAspect();
  181. return 0;
  182. }
  183. catch(Exception e)
  184. {
  185. return LuaDLL.toluaL_exception(L, e);
  186. }
  187. }
  188. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  189. static int ResetCullingMatrix(IntPtr L)
  190. {
  191. try
  192. {
  193. ToLua.CheckArgsCount(L, 1);
  194. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  195. obj.ResetCullingMatrix();
  196. return 0;
  197. }
  198. catch(Exception e)
  199. {
  200. return LuaDLL.toluaL_exception(L, e);
  201. }
  202. }
  203. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  204. static int SetReplacementShader(IntPtr L)
  205. {
  206. try
  207. {
  208. ToLua.CheckArgsCount(L, 3);
  209. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  210. UnityEngine.Shader arg0 = (UnityEngine.Shader)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Shader));
  211. string arg1 = ToLua.CheckString(L, 3);
  212. obj.SetReplacementShader(arg0, arg1);
  213. return 0;
  214. }
  215. catch(Exception e)
  216. {
  217. return LuaDLL.toluaL_exception(L, e);
  218. }
  219. }
  220. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  221. static int ResetReplacementShader(IntPtr L)
  222. {
  223. try
  224. {
  225. ToLua.CheckArgsCount(L, 1);
  226. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  227. obj.ResetReplacementShader();
  228. return 0;
  229. }
  230. catch(Exception e)
  231. {
  232. return LuaDLL.toluaL_exception(L, e);
  233. }
  234. }
  235. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  236. static int SetTargetBuffers(IntPtr L)
  237. {
  238. try
  239. {
  240. int count = LuaDLL.lua_gettop(L);
  241. if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.RenderBuffer), typeof(UnityEngine.RenderBuffer)))
  242. {
  243. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  244. UnityEngine.RenderBuffer arg0 = (UnityEngine.RenderBuffer)ToLua.ToObject(L, 2);
  245. UnityEngine.RenderBuffer arg1 = (UnityEngine.RenderBuffer)ToLua.ToObject(L, 3);
  246. obj.SetTargetBuffers(arg0, arg1);
  247. return 0;
  248. }
  249. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.RenderBuffer[]), typeof(UnityEngine.RenderBuffer)))
  250. {
  251. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  252. UnityEngine.RenderBuffer[] arg0 = ToLua.CheckObjectArray<UnityEngine.RenderBuffer>(L, 2);
  253. UnityEngine.RenderBuffer arg1 = (UnityEngine.RenderBuffer)ToLua.ToObject(L, 3);
  254. obj.SetTargetBuffers(arg0, arg1);
  255. return 0;
  256. }
  257. else
  258. {
  259. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Camera.SetTargetBuffers");
  260. }
  261. }
  262. catch(Exception e)
  263. {
  264. return LuaDLL.toluaL_exception(L, e);
  265. }
  266. }
  267. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  268. static int ResetWorldToCameraMatrix(IntPtr L)
  269. {
  270. try
  271. {
  272. ToLua.CheckArgsCount(L, 1);
  273. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  274. obj.ResetWorldToCameraMatrix();
  275. return 0;
  276. }
  277. catch(Exception e)
  278. {
  279. return LuaDLL.toluaL_exception(L, e);
  280. }
  281. }
  282. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  283. static int ResetProjectionMatrix(IntPtr L)
  284. {
  285. try
  286. {
  287. ToLua.CheckArgsCount(L, 1);
  288. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  289. obj.ResetProjectionMatrix();
  290. return 0;
  291. }
  292. catch(Exception e)
  293. {
  294. return LuaDLL.toluaL_exception(L, e);
  295. }
  296. }
  297. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  298. static int CalculateObliqueMatrix(IntPtr L)
  299. {
  300. try
  301. {
  302. ToLua.CheckArgsCount(L, 2);
  303. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  304. UnityEngine.Vector4 arg0 = ToLua.ToVector4(L, 2);
  305. UnityEngine.Matrix4x4 o = obj.CalculateObliqueMatrix(arg0);
  306. ToLua.PushValue(L, o);
  307. return 1;
  308. }
  309. catch(Exception e)
  310. {
  311. return LuaDLL.toluaL_exception(L, e);
  312. }
  313. }
  314. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  315. static int WorldToScreenPoint(IntPtr L)
  316. {
  317. try
  318. {
  319. int count = LuaDLL.lua_gettop(L);
  320. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.Vector3)))
  321. {
  322. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  323. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  324. UnityEngine.Vector3 o = obj.WorldToScreenPoint(arg0);
  325. ToLua.Push(L, o);
  326. return 1;
  327. }
  328. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.Vector3), typeof(UnityEngine.Camera.MonoOrStereoscopicEye)))
  329. {
  330. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  331. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  332. UnityEngine.Camera.MonoOrStereoscopicEye arg1 = (UnityEngine.Camera.MonoOrStereoscopicEye)ToLua.ToObject(L, 3);
  333. UnityEngine.Vector3 o = obj.WorldToScreenPoint(arg0, arg1);
  334. ToLua.Push(L, o);
  335. return 1;
  336. }
  337. else
  338. {
  339. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Camera.WorldToScreenPoint");
  340. }
  341. }
  342. catch(Exception e)
  343. {
  344. return LuaDLL.toluaL_exception(L, e);
  345. }
  346. }
  347. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  348. static int WorldToViewportPoint(IntPtr L)
  349. {
  350. try
  351. {
  352. int count = LuaDLL.lua_gettop(L);
  353. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.Vector3)))
  354. {
  355. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  356. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  357. UnityEngine.Vector3 o = obj.WorldToViewportPoint(arg0);
  358. ToLua.Push(L, o);
  359. return 1;
  360. }
  361. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.Vector3), typeof(UnityEngine.Camera.MonoOrStereoscopicEye)))
  362. {
  363. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  364. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  365. UnityEngine.Camera.MonoOrStereoscopicEye arg1 = (UnityEngine.Camera.MonoOrStereoscopicEye)ToLua.ToObject(L, 3);
  366. UnityEngine.Vector3 o = obj.WorldToViewportPoint(arg0, arg1);
  367. ToLua.Push(L, o);
  368. return 1;
  369. }
  370. else
  371. {
  372. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Camera.WorldToViewportPoint");
  373. }
  374. }
  375. catch(Exception e)
  376. {
  377. return LuaDLL.toluaL_exception(L, e);
  378. }
  379. }
  380. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  381. static int ViewportToWorldPoint(IntPtr L)
  382. {
  383. try
  384. {
  385. int count = LuaDLL.lua_gettop(L);
  386. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.Vector3)))
  387. {
  388. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  389. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  390. UnityEngine.Vector3 o = obj.ViewportToWorldPoint(arg0);
  391. ToLua.Push(L, o);
  392. return 1;
  393. }
  394. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.Vector3), typeof(UnityEngine.Camera.MonoOrStereoscopicEye)))
  395. {
  396. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  397. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  398. UnityEngine.Camera.MonoOrStereoscopicEye arg1 = (UnityEngine.Camera.MonoOrStereoscopicEye)ToLua.ToObject(L, 3);
  399. UnityEngine.Vector3 o = obj.ViewportToWorldPoint(arg0, arg1);
  400. ToLua.Push(L, o);
  401. return 1;
  402. }
  403. else
  404. {
  405. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Camera.ViewportToWorldPoint");
  406. }
  407. }
  408. catch(Exception e)
  409. {
  410. return LuaDLL.toluaL_exception(L, e);
  411. }
  412. }
  413. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  414. static int ScreenToWorldPoint(IntPtr L)
  415. {
  416. try
  417. {
  418. int count = LuaDLL.lua_gettop(L);
  419. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.Vector3)))
  420. {
  421. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  422. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  423. UnityEngine.Vector3 o = obj.ScreenToWorldPoint(arg0);
  424. ToLua.Push(L, o);
  425. return 1;
  426. }
  427. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.Vector3), typeof(UnityEngine.Camera.MonoOrStereoscopicEye)))
  428. {
  429. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  430. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  431. UnityEngine.Camera.MonoOrStereoscopicEye arg1 = (UnityEngine.Camera.MonoOrStereoscopicEye)ToLua.ToObject(L, 3);
  432. UnityEngine.Vector3 o = obj.ScreenToWorldPoint(arg0, arg1);
  433. ToLua.Push(L, o);
  434. return 1;
  435. }
  436. else
  437. {
  438. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Camera.ScreenToWorldPoint");
  439. }
  440. }
  441. catch(Exception e)
  442. {
  443. return LuaDLL.toluaL_exception(L, e);
  444. }
  445. }
  446. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  447. static int ScreenToViewportPoint(IntPtr L)
  448. {
  449. try
  450. {
  451. ToLua.CheckArgsCount(L, 2);
  452. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  453. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  454. UnityEngine.Vector3 o = obj.ScreenToViewportPoint(arg0);
  455. ToLua.Push(L, o);
  456. return 1;
  457. }
  458. catch(Exception e)
  459. {
  460. return LuaDLL.toluaL_exception(L, e);
  461. }
  462. }
  463. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  464. static int ViewportToScreenPoint(IntPtr L)
  465. {
  466. try
  467. {
  468. ToLua.CheckArgsCount(L, 2);
  469. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  470. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  471. UnityEngine.Vector3 o = obj.ViewportToScreenPoint(arg0);
  472. ToLua.Push(L, o);
  473. return 1;
  474. }
  475. catch(Exception e)
  476. {
  477. return LuaDLL.toluaL_exception(L, e);
  478. }
  479. }
  480. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  481. static int ViewportPointToRay(IntPtr L)
  482. {
  483. try
  484. {
  485. int count = LuaDLL.lua_gettop(L);
  486. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.Vector3)))
  487. {
  488. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  489. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  490. UnityEngine.Ray o = obj.ViewportPointToRay(arg0);
  491. ToLua.Push(L, o);
  492. return 1;
  493. }
  494. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.Vector3), typeof(UnityEngine.Camera.MonoOrStereoscopicEye)))
  495. {
  496. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  497. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  498. UnityEngine.Camera.MonoOrStereoscopicEye arg1 = (UnityEngine.Camera.MonoOrStereoscopicEye)ToLua.ToObject(L, 3);
  499. UnityEngine.Ray o = obj.ViewportPointToRay(arg0, arg1);
  500. ToLua.Push(L, o);
  501. return 1;
  502. }
  503. else
  504. {
  505. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Camera.ViewportPointToRay");
  506. }
  507. }
  508. catch(Exception e)
  509. {
  510. return LuaDLL.toluaL_exception(L, e);
  511. }
  512. }
  513. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  514. static int ScreenPointToRay(IntPtr L)
  515. {
  516. try
  517. {
  518. int count = LuaDLL.lua_gettop(L);
  519. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.Vector3)))
  520. {
  521. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  522. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  523. UnityEngine.Ray o = obj.ScreenPointToRay(arg0);
  524. ToLua.Push(L, o);
  525. return 1;
  526. }
  527. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.Vector3), typeof(UnityEngine.Camera.MonoOrStereoscopicEye)))
  528. {
  529. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  530. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  531. UnityEngine.Camera.MonoOrStereoscopicEye arg1 = (UnityEngine.Camera.MonoOrStereoscopicEye)ToLua.ToObject(L, 3);
  532. UnityEngine.Ray o = obj.ScreenPointToRay(arg0, arg1);
  533. ToLua.Push(L, o);
  534. return 1;
  535. }
  536. else
  537. {
  538. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Camera.ScreenPointToRay");
  539. }
  540. }
  541. catch(Exception e)
  542. {
  543. return LuaDLL.toluaL_exception(L, e);
  544. }
  545. }
  546. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  547. static int CalculateFrustumCorners(IntPtr L)
  548. {
  549. try
  550. {
  551. ToLua.CheckArgsCount(L, 5);
  552. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  553. UnityEngine.Rect arg0 = (UnityEngine.Rect)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rect));
  554. float arg1 = (float)LuaDLL.luaL_checknumber(L, 3);
  555. UnityEngine.Camera.MonoOrStereoscopicEye arg2 = (UnityEngine.Camera.MonoOrStereoscopicEye)ToLua.CheckObject(L, 4, typeof(UnityEngine.Camera.MonoOrStereoscopicEye));
  556. UnityEngine.Vector3[] arg3 = ToLua.CheckObjectArray<UnityEngine.Vector3>(L, 5);
  557. obj.CalculateFrustumCorners(arg0, arg1, arg2, arg3);
  558. return 0;
  559. }
  560. catch(Exception e)
  561. {
  562. return LuaDLL.toluaL_exception(L, e);
  563. }
  564. }
  565. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  566. static int CalculateProjectionMatrixFromPhysicalProperties(IntPtr L)
  567. {
  568. try
  569. {
  570. ToLua.CheckArgsCount(L, 7);
  571. UnityEngine.Matrix4x4 arg0;
  572. float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
  573. UnityEngine.Vector2 arg2 = ToLua.ToVector2(L, 3);
  574. UnityEngine.Vector2 arg3 = ToLua.ToVector2(L, 4);
  575. float arg4 = (float)LuaDLL.luaL_checknumber(L, 5);
  576. float arg5 = (float)LuaDLL.luaL_checknumber(L, 6);
  577. UnityEngine.Camera.GateFitParameters arg6 = (UnityEngine.Camera.GateFitParameters)ToLua.CheckObject(L, 7, typeof(UnityEngine.Camera.GateFitParameters));
  578. UnityEngine.Camera.CalculateProjectionMatrixFromPhysicalProperties(out arg0, arg1, arg2, arg3, arg4, arg5, arg6);
  579. ToLua.PushValue(L, arg0);
  580. return 1;
  581. }
  582. catch(Exception e)
  583. {
  584. return LuaDLL.toluaL_exception(L, e);
  585. }
  586. }
  587. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  588. static int FocalLengthToFOV(IntPtr L)
  589. {
  590. try
  591. {
  592. ToLua.CheckArgsCount(L, 2);
  593. float arg0 = (float)LuaDLL.luaL_checknumber(L, 1);
  594. float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
  595. float o = UnityEngine.Camera.FocalLengthToFOV(arg0, arg1);
  596. LuaDLL.lua_pushnumber(L, o);
  597. return 1;
  598. }
  599. catch(Exception e)
  600. {
  601. return LuaDLL.toluaL_exception(L, e);
  602. }
  603. }
  604. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  605. static int FOVToFocalLength(IntPtr L)
  606. {
  607. try
  608. {
  609. ToLua.CheckArgsCount(L, 2);
  610. float arg0 = (float)LuaDLL.luaL_checknumber(L, 1);
  611. float arg1 = (float)LuaDLL.luaL_checknumber(L, 2);
  612. float o = UnityEngine.Camera.FOVToFocalLength(arg0, arg1);
  613. LuaDLL.lua_pushnumber(L, o);
  614. return 1;
  615. }
  616. catch(Exception e)
  617. {
  618. return LuaDLL.toluaL_exception(L, e);
  619. }
  620. }
  621. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  622. static int GetStereoNonJitteredProjectionMatrix(IntPtr L)
  623. {
  624. try
  625. {
  626. ToLua.CheckArgsCount(L, 2);
  627. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  628. UnityEngine.Camera.StereoscopicEye arg0 = (UnityEngine.Camera.StereoscopicEye)ToLua.CheckObject(L, 2, typeof(UnityEngine.Camera.StereoscopicEye));
  629. UnityEngine.Matrix4x4 o = obj.GetStereoNonJitteredProjectionMatrix(arg0);
  630. ToLua.PushValue(L, o);
  631. return 1;
  632. }
  633. catch(Exception e)
  634. {
  635. return LuaDLL.toluaL_exception(L, e);
  636. }
  637. }
  638. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  639. static int GetStereoViewMatrix(IntPtr L)
  640. {
  641. try
  642. {
  643. ToLua.CheckArgsCount(L, 2);
  644. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  645. UnityEngine.Camera.StereoscopicEye arg0 = (UnityEngine.Camera.StereoscopicEye)ToLua.CheckObject(L, 2, typeof(UnityEngine.Camera.StereoscopicEye));
  646. UnityEngine.Matrix4x4 o = obj.GetStereoViewMatrix(arg0);
  647. ToLua.PushValue(L, o);
  648. return 1;
  649. }
  650. catch(Exception e)
  651. {
  652. return LuaDLL.toluaL_exception(L, e);
  653. }
  654. }
  655. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  656. static int CopyStereoDeviceProjectionMatrixToNonJittered(IntPtr L)
  657. {
  658. try
  659. {
  660. ToLua.CheckArgsCount(L, 2);
  661. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  662. UnityEngine.Camera.StereoscopicEye arg0 = (UnityEngine.Camera.StereoscopicEye)ToLua.CheckObject(L, 2, typeof(UnityEngine.Camera.StereoscopicEye));
  663. obj.CopyStereoDeviceProjectionMatrixToNonJittered(arg0);
  664. return 0;
  665. }
  666. catch(Exception e)
  667. {
  668. return LuaDLL.toluaL_exception(L, e);
  669. }
  670. }
  671. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  672. static int GetStereoProjectionMatrix(IntPtr L)
  673. {
  674. try
  675. {
  676. ToLua.CheckArgsCount(L, 2);
  677. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  678. UnityEngine.Camera.StereoscopicEye arg0 = (UnityEngine.Camera.StereoscopicEye)ToLua.CheckObject(L, 2, typeof(UnityEngine.Camera.StereoscopicEye));
  679. UnityEngine.Matrix4x4 o = obj.GetStereoProjectionMatrix(arg0);
  680. ToLua.PushValue(L, o);
  681. return 1;
  682. }
  683. catch(Exception e)
  684. {
  685. return LuaDLL.toluaL_exception(L, e);
  686. }
  687. }
  688. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  689. static int SetStereoProjectionMatrix(IntPtr L)
  690. {
  691. try
  692. {
  693. ToLua.CheckArgsCount(L, 3);
  694. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  695. UnityEngine.Camera.StereoscopicEye arg0 = (UnityEngine.Camera.StereoscopicEye)ToLua.CheckObject(L, 2, typeof(UnityEngine.Camera.StereoscopicEye));
  696. UnityEngine.Matrix4x4 arg1 = (UnityEngine.Matrix4x4)ToLua.CheckObject(L, 3, typeof(UnityEngine.Matrix4x4));
  697. obj.SetStereoProjectionMatrix(arg0, arg1);
  698. return 0;
  699. }
  700. catch(Exception e)
  701. {
  702. return LuaDLL.toluaL_exception(L, e);
  703. }
  704. }
  705. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  706. static int ResetStereoProjectionMatrices(IntPtr L)
  707. {
  708. try
  709. {
  710. ToLua.CheckArgsCount(L, 1);
  711. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  712. obj.ResetStereoProjectionMatrices();
  713. return 0;
  714. }
  715. catch(Exception e)
  716. {
  717. return LuaDLL.toluaL_exception(L, e);
  718. }
  719. }
  720. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  721. static int SetStereoViewMatrix(IntPtr L)
  722. {
  723. try
  724. {
  725. ToLua.CheckArgsCount(L, 3);
  726. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  727. UnityEngine.Camera.StereoscopicEye arg0 = (UnityEngine.Camera.StereoscopicEye)ToLua.CheckObject(L, 2, typeof(UnityEngine.Camera.StereoscopicEye));
  728. UnityEngine.Matrix4x4 arg1 = (UnityEngine.Matrix4x4)ToLua.CheckObject(L, 3, typeof(UnityEngine.Matrix4x4));
  729. obj.SetStereoViewMatrix(arg0, arg1);
  730. return 0;
  731. }
  732. catch(Exception e)
  733. {
  734. return LuaDLL.toluaL_exception(L, e);
  735. }
  736. }
  737. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  738. static int ResetStereoViewMatrices(IntPtr L)
  739. {
  740. try
  741. {
  742. ToLua.CheckArgsCount(L, 1);
  743. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  744. obj.ResetStereoViewMatrices();
  745. return 0;
  746. }
  747. catch(Exception e)
  748. {
  749. return LuaDLL.toluaL_exception(L, e);
  750. }
  751. }
  752. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  753. static int GetAllCameras(IntPtr L)
  754. {
  755. try
  756. {
  757. ToLua.CheckArgsCount(L, 1);
  758. UnityEngine.Camera[] arg0 = ToLua.CheckObjectArray<UnityEngine.Camera>(L, 1);
  759. int o = UnityEngine.Camera.GetAllCameras(arg0);
  760. LuaDLL.lua_pushinteger(L, o);
  761. return 1;
  762. }
  763. catch(Exception e)
  764. {
  765. return LuaDLL.toluaL_exception(L, e);
  766. }
  767. }
  768. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  769. static int RenderToCubemap(IntPtr L)
  770. {
  771. try
  772. {
  773. int count = LuaDLL.lua_gettop(L);
  774. if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.Cubemap)))
  775. {
  776. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  777. UnityEngine.Cubemap arg0 = (UnityEngine.Cubemap)ToLua.ToObject(L, 2);
  778. bool o = obj.RenderToCubemap(arg0);
  779. LuaDLL.lua_pushboolean(L, o);
  780. return 1;
  781. }
  782. else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.RenderTexture)))
  783. {
  784. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  785. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.ToObject(L, 2);
  786. bool o = obj.RenderToCubemap(arg0);
  787. LuaDLL.lua_pushboolean(L, o);
  788. return 1;
  789. }
  790. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.Cubemap), typeof(int)))
  791. {
  792. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  793. UnityEngine.Cubemap arg0 = (UnityEngine.Cubemap)ToLua.ToObject(L, 2);
  794. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  795. bool o = obj.RenderToCubemap(arg0, arg1);
  796. LuaDLL.lua_pushboolean(L, o);
  797. return 1;
  798. }
  799. else if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.RenderTexture), typeof(int)))
  800. {
  801. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  802. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.ToObject(L, 2);
  803. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  804. bool o = obj.RenderToCubemap(arg0, arg1);
  805. LuaDLL.lua_pushboolean(L, o);
  806. return 1;
  807. }
  808. else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(UnityEngine.Camera), typeof(UnityEngine.RenderTexture), typeof(int), typeof(UnityEngine.Camera.MonoOrStereoscopicEye)))
  809. {
  810. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.ToObject(L, 1);
  811. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.ToObject(L, 2);
  812. int arg1 = (int)LuaDLL.lua_tonumber(L, 3);
  813. UnityEngine.Camera.MonoOrStereoscopicEye arg2 = (UnityEngine.Camera.MonoOrStereoscopicEye)ToLua.ToObject(L, 4);
  814. bool o = obj.RenderToCubemap(arg0, arg1, arg2);
  815. LuaDLL.lua_pushboolean(L, o);
  816. return 1;
  817. }
  818. else
  819. {
  820. return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Camera.RenderToCubemap");
  821. }
  822. }
  823. catch(Exception e)
  824. {
  825. return LuaDLL.toluaL_exception(L, e);
  826. }
  827. }
  828. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  829. static int Render(IntPtr L)
  830. {
  831. try
  832. {
  833. ToLua.CheckArgsCount(L, 1);
  834. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  835. obj.Render();
  836. return 0;
  837. }
  838. catch(Exception e)
  839. {
  840. return LuaDLL.toluaL_exception(L, e);
  841. }
  842. }
  843. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  844. static int RenderWithShader(IntPtr L)
  845. {
  846. try
  847. {
  848. ToLua.CheckArgsCount(L, 3);
  849. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  850. UnityEngine.Shader arg0 = (UnityEngine.Shader)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Shader));
  851. string arg1 = ToLua.CheckString(L, 3);
  852. obj.RenderWithShader(arg0, arg1);
  853. return 0;
  854. }
  855. catch(Exception e)
  856. {
  857. return LuaDLL.toluaL_exception(L, e);
  858. }
  859. }
  860. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  861. static int RenderDontRestore(IntPtr L)
  862. {
  863. try
  864. {
  865. ToLua.CheckArgsCount(L, 1);
  866. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  867. obj.RenderDontRestore();
  868. return 0;
  869. }
  870. catch(Exception e)
  871. {
  872. return LuaDLL.toluaL_exception(L, e);
  873. }
  874. }
  875. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  876. static int SetupCurrent(IntPtr L)
  877. {
  878. try
  879. {
  880. ToLua.CheckArgsCount(L, 1);
  881. UnityEngine.Camera arg0 = (UnityEngine.Camera)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.Camera));
  882. UnityEngine.Camera.SetupCurrent(arg0);
  883. return 0;
  884. }
  885. catch(Exception e)
  886. {
  887. return LuaDLL.toluaL_exception(L, e);
  888. }
  889. }
  890. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  891. static int CopyFrom(IntPtr L)
  892. {
  893. try
  894. {
  895. ToLua.CheckArgsCount(L, 2);
  896. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  897. UnityEngine.Camera arg0 = (UnityEngine.Camera)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.Camera));
  898. obj.CopyFrom(arg0);
  899. return 0;
  900. }
  901. catch(Exception e)
  902. {
  903. return LuaDLL.toluaL_exception(L, e);
  904. }
  905. }
  906. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  907. static int RemoveCommandBuffers(IntPtr L)
  908. {
  909. try
  910. {
  911. ToLua.CheckArgsCount(L, 2);
  912. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  913. UnityEngine.Rendering.CameraEvent arg0 = (UnityEngine.Rendering.CameraEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.CameraEvent));
  914. obj.RemoveCommandBuffers(arg0);
  915. return 0;
  916. }
  917. catch(Exception e)
  918. {
  919. return LuaDLL.toluaL_exception(L, e);
  920. }
  921. }
  922. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  923. static int RemoveAllCommandBuffers(IntPtr L)
  924. {
  925. try
  926. {
  927. ToLua.CheckArgsCount(L, 1);
  928. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  929. obj.RemoveAllCommandBuffers();
  930. return 0;
  931. }
  932. catch(Exception e)
  933. {
  934. return LuaDLL.toluaL_exception(L, e);
  935. }
  936. }
  937. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  938. static int AddCommandBuffer(IntPtr L)
  939. {
  940. try
  941. {
  942. ToLua.CheckArgsCount(L, 3);
  943. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  944. UnityEngine.Rendering.CameraEvent arg0 = (UnityEngine.Rendering.CameraEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.CameraEvent));
  945. UnityEngine.Rendering.CommandBuffer arg1 = (UnityEngine.Rendering.CommandBuffer)ToLua.CheckObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer));
  946. obj.AddCommandBuffer(arg0, arg1);
  947. return 0;
  948. }
  949. catch(Exception e)
  950. {
  951. return LuaDLL.toluaL_exception(L, e);
  952. }
  953. }
  954. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  955. static int AddCommandBufferAsync(IntPtr L)
  956. {
  957. try
  958. {
  959. ToLua.CheckArgsCount(L, 4);
  960. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  961. UnityEngine.Rendering.CameraEvent arg0 = (UnityEngine.Rendering.CameraEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.CameraEvent));
  962. UnityEngine.Rendering.CommandBuffer arg1 = (UnityEngine.Rendering.CommandBuffer)ToLua.CheckObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer));
  963. UnityEngine.Rendering.ComputeQueueType arg2 = (UnityEngine.Rendering.ComputeQueueType)ToLua.CheckObject(L, 4, typeof(UnityEngine.Rendering.ComputeQueueType));
  964. obj.AddCommandBufferAsync(arg0, arg1, arg2);
  965. return 0;
  966. }
  967. catch(Exception e)
  968. {
  969. return LuaDLL.toluaL_exception(L, e);
  970. }
  971. }
  972. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  973. static int RemoveCommandBuffer(IntPtr L)
  974. {
  975. try
  976. {
  977. ToLua.CheckArgsCount(L, 3);
  978. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  979. UnityEngine.Rendering.CameraEvent arg0 = (UnityEngine.Rendering.CameraEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.CameraEvent));
  980. UnityEngine.Rendering.CommandBuffer arg1 = (UnityEngine.Rendering.CommandBuffer)ToLua.CheckObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer));
  981. obj.RemoveCommandBuffer(arg0, arg1);
  982. return 0;
  983. }
  984. catch(Exception e)
  985. {
  986. return LuaDLL.toluaL_exception(L, e);
  987. }
  988. }
  989. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  990. static int GetCommandBuffers(IntPtr L)
  991. {
  992. try
  993. {
  994. ToLua.CheckArgsCount(L, 2);
  995. UnityEngine.Camera obj = (UnityEngine.Camera)ToLua.CheckObject(L, 1, typeof(UnityEngine.Camera));
  996. UnityEngine.Rendering.CameraEvent arg0 = (UnityEngine.Rendering.CameraEvent)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.CameraEvent));
  997. UnityEngine.Rendering.CommandBuffer[] o = obj.GetCommandBuffers(arg0);
  998. ToLua.Push(L, o);
  999. return 1;
  1000. }
  1001. catch(Exception e)
  1002. {
  1003. return LuaDLL.toluaL_exception(L, e);
  1004. }
  1005. }
  1006. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1007. static int op_Equality(IntPtr L)
  1008. {
  1009. try
  1010. {
  1011. ToLua.CheckArgsCount(L, 2);
  1012. UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
  1013. UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
  1014. bool o = arg0 == arg1;
  1015. LuaDLL.lua_pushboolean(L, o);
  1016. return 1;
  1017. }
  1018. catch(Exception e)
  1019. {
  1020. return LuaDLL.toluaL_exception(L, e);
  1021. }
  1022. }
  1023. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1024. static int get_onPreCull(IntPtr L)
  1025. {
  1026. try
  1027. {
  1028. ToLua.Push(L, UnityEngine.Camera.onPreCull);
  1029. return 1;
  1030. }
  1031. catch(Exception e)
  1032. {
  1033. return LuaDLL.toluaL_exception(L, e);
  1034. }
  1035. }
  1036. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1037. static int get_onPreRender(IntPtr L)
  1038. {
  1039. try
  1040. {
  1041. ToLua.Push(L, UnityEngine.Camera.onPreRender);
  1042. return 1;
  1043. }
  1044. catch(Exception e)
  1045. {
  1046. return LuaDLL.toluaL_exception(L, e);
  1047. }
  1048. }
  1049. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1050. static int get_onPostRender(IntPtr L)
  1051. {
  1052. try
  1053. {
  1054. ToLua.Push(L, UnityEngine.Camera.onPostRender);
  1055. return 1;
  1056. }
  1057. catch(Exception e)
  1058. {
  1059. return LuaDLL.toluaL_exception(L, e);
  1060. }
  1061. }
  1062. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1063. static int get_nearClipPlane(IntPtr L)
  1064. {
  1065. object o = null;
  1066. try
  1067. {
  1068. o = ToLua.ToObject(L, 1);
  1069. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1070. float ret = obj.nearClipPlane;
  1071. LuaDLL.lua_pushnumber(L, ret);
  1072. return 1;
  1073. }
  1074. catch(Exception e)
  1075. {
  1076. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index nearClipPlane on a nil value" : e.Message);
  1077. }
  1078. }
  1079. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1080. static int get_farClipPlane(IntPtr L)
  1081. {
  1082. object o = null;
  1083. try
  1084. {
  1085. o = ToLua.ToObject(L, 1);
  1086. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1087. float ret = obj.farClipPlane;
  1088. LuaDLL.lua_pushnumber(L, ret);
  1089. return 1;
  1090. }
  1091. catch(Exception e)
  1092. {
  1093. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index farClipPlane on a nil value" : e.Message);
  1094. }
  1095. }
  1096. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1097. static int get_fieldOfView(IntPtr L)
  1098. {
  1099. object o = null;
  1100. try
  1101. {
  1102. o = ToLua.ToObject(L, 1);
  1103. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1104. float ret = obj.fieldOfView;
  1105. LuaDLL.lua_pushnumber(L, ret);
  1106. return 1;
  1107. }
  1108. catch(Exception e)
  1109. {
  1110. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index fieldOfView on a nil value" : e.Message);
  1111. }
  1112. }
  1113. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1114. static int get_renderingPath(IntPtr L)
  1115. {
  1116. object o = null;
  1117. try
  1118. {
  1119. o = ToLua.ToObject(L, 1);
  1120. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1121. UnityEngine.RenderingPath ret = obj.renderingPath;
  1122. ToLua.Push(L, ret);
  1123. return 1;
  1124. }
  1125. catch(Exception e)
  1126. {
  1127. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index renderingPath on a nil value" : e.Message);
  1128. }
  1129. }
  1130. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1131. static int get_actualRenderingPath(IntPtr L)
  1132. {
  1133. object o = null;
  1134. try
  1135. {
  1136. o = ToLua.ToObject(L, 1);
  1137. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1138. UnityEngine.RenderingPath ret = obj.actualRenderingPath;
  1139. ToLua.Push(L, ret);
  1140. return 1;
  1141. }
  1142. catch(Exception e)
  1143. {
  1144. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index actualRenderingPath on a nil value" : e.Message);
  1145. }
  1146. }
  1147. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1148. static int get_allowHDR(IntPtr L)
  1149. {
  1150. object o = null;
  1151. try
  1152. {
  1153. o = ToLua.ToObject(L, 1);
  1154. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1155. bool ret = obj.allowHDR;
  1156. LuaDLL.lua_pushboolean(L, ret);
  1157. return 1;
  1158. }
  1159. catch(Exception e)
  1160. {
  1161. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index allowHDR on a nil value" : e.Message);
  1162. }
  1163. }
  1164. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1165. static int get_allowMSAA(IntPtr L)
  1166. {
  1167. object o = null;
  1168. try
  1169. {
  1170. o = ToLua.ToObject(L, 1);
  1171. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1172. bool ret = obj.allowMSAA;
  1173. LuaDLL.lua_pushboolean(L, ret);
  1174. return 1;
  1175. }
  1176. catch(Exception e)
  1177. {
  1178. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index allowMSAA on a nil value" : e.Message);
  1179. }
  1180. }
  1181. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1182. static int get_allowDynamicResolution(IntPtr L)
  1183. {
  1184. object o = null;
  1185. try
  1186. {
  1187. o = ToLua.ToObject(L, 1);
  1188. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1189. bool ret = obj.allowDynamicResolution;
  1190. LuaDLL.lua_pushboolean(L, ret);
  1191. return 1;
  1192. }
  1193. catch(Exception e)
  1194. {
  1195. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index allowDynamicResolution on a nil value" : e.Message);
  1196. }
  1197. }
  1198. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1199. static int get_forceIntoRenderTexture(IntPtr L)
  1200. {
  1201. object o = null;
  1202. try
  1203. {
  1204. o = ToLua.ToObject(L, 1);
  1205. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1206. bool ret = obj.forceIntoRenderTexture;
  1207. LuaDLL.lua_pushboolean(L, ret);
  1208. return 1;
  1209. }
  1210. catch(Exception e)
  1211. {
  1212. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index forceIntoRenderTexture on a nil value" : e.Message);
  1213. }
  1214. }
  1215. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1216. static int get_orthographicSize(IntPtr L)
  1217. {
  1218. object o = null;
  1219. try
  1220. {
  1221. o = ToLua.ToObject(L, 1);
  1222. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1223. float ret = obj.orthographicSize;
  1224. LuaDLL.lua_pushnumber(L, ret);
  1225. return 1;
  1226. }
  1227. catch(Exception e)
  1228. {
  1229. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index orthographicSize on a nil value" : e.Message);
  1230. }
  1231. }
  1232. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1233. static int get_orthographic(IntPtr L)
  1234. {
  1235. object o = null;
  1236. try
  1237. {
  1238. o = ToLua.ToObject(L, 1);
  1239. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1240. bool ret = obj.orthographic;
  1241. LuaDLL.lua_pushboolean(L, ret);
  1242. return 1;
  1243. }
  1244. catch(Exception e)
  1245. {
  1246. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index orthographic on a nil value" : e.Message);
  1247. }
  1248. }
  1249. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1250. static int get_opaqueSortMode(IntPtr L)
  1251. {
  1252. object o = null;
  1253. try
  1254. {
  1255. o = ToLua.ToObject(L, 1);
  1256. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1257. UnityEngine.Rendering.OpaqueSortMode ret = obj.opaqueSortMode;
  1258. ToLua.Push(L, ret);
  1259. return 1;
  1260. }
  1261. catch(Exception e)
  1262. {
  1263. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index opaqueSortMode on a nil value" : e.Message);
  1264. }
  1265. }
  1266. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1267. static int get_transparencySortMode(IntPtr L)
  1268. {
  1269. object o = null;
  1270. try
  1271. {
  1272. o = ToLua.ToObject(L, 1);
  1273. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1274. UnityEngine.TransparencySortMode ret = obj.transparencySortMode;
  1275. ToLua.Push(L, ret);
  1276. return 1;
  1277. }
  1278. catch(Exception e)
  1279. {
  1280. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index transparencySortMode on a nil value" : e.Message);
  1281. }
  1282. }
  1283. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1284. static int get_transparencySortAxis(IntPtr L)
  1285. {
  1286. object o = null;
  1287. try
  1288. {
  1289. o = ToLua.ToObject(L, 1);
  1290. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1291. UnityEngine.Vector3 ret = obj.transparencySortAxis;
  1292. ToLua.Push(L, ret);
  1293. return 1;
  1294. }
  1295. catch(Exception e)
  1296. {
  1297. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index transparencySortAxis on a nil value" : e.Message);
  1298. }
  1299. }
  1300. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1301. static int get_depth(IntPtr L)
  1302. {
  1303. object o = null;
  1304. try
  1305. {
  1306. o = ToLua.ToObject(L, 1);
  1307. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1308. float ret = obj.depth;
  1309. LuaDLL.lua_pushnumber(L, ret);
  1310. return 1;
  1311. }
  1312. catch(Exception e)
  1313. {
  1314. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index depth on a nil value" : e.Message);
  1315. }
  1316. }
  1317. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1318. static int get_aspect(IntPtr L)
  1319. {
  1320. object o = null;
  1321. try
  1322. {
  1323. o = ToLua.ToObject(L, 1);
  1324. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1325. float ret = obj.aspect;
  1326. LuaDLL.lua_pushnumber(L, ret);
  1327. return 1;
  1328. }
  1329. catch(Exception e)
  1330. {
  1331. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index aspect on a nil value" : e.Message);
  1332. }
  1333. }
  1334. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1335. static int get_velocity(IntPtr L)
  1336. {
  1337. object o = null;
  1338. try
  1339. {
  1340. o = ToLua.ToObject(L, 1);
  1341. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1342. UnityEngine.Vector3 ret = obj.velocity;
  1343. ToLua.Push(L, ret);
  1344. return 1;
  1345. }
  1346. catch(Exception e)
  1347. {
  1348. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index velocity on a nil value" : e.Message);
  1349. }
  1350. }
  1351. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1352. static int get_cullingMask(IntPtr L)
  1353. {
  1354. object o = null;
  1355. try
  1356. {
  1357. o = ToLua.ToObject(L, 1);
  1358. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1359. int ret = obj.cullingMask;
  1360. LuaDLL.lua_pushinteger(L, ret);
  1361. return 1;
  1362. }
  1363. catch(Exception e)
  1364. {
  1365. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cullingMask on a nil value" : e.Message);
  1366. }
  1367. }
  1368. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1369. static int get_eventMask(IntPtr L)
  1370. {
  1371. object o = null;
  1372. try
  1373. {
  1374. o = ToLua.ToObject(L, 1);
  1375. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1376. int ret = obj.eventMask;
  1377. LuaDLL.lua_pushinteger(L, ret);
  1378. return 1;
  1379. }
  1380. catch(Exception e)
  1381. {
  1382. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index eventMask on a nil value" : e.Message);
  1383. }
  1384. }
  1385. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1386. static int get_layerCullSpherical(IntPtr L)
  1387. {
  1388. object o = null;
  1389. try
  1390. {
  1391. o = ToLua.ToObject(L, 1);
  1392. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1393. bool ret = obj.layerCullSpherical;
  1394. LuaDLL.lua_pushboolean(L, ret);
  1395. return 1;
  1396. }
  1397. catch(Exception e)
  1398. {
  1399. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index layerCullSpherical on a nil value" : e.Message);
  1400. }
  1401. }
  1402. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1403. static int get_cameraType(IntPtr L)
  1404. {
  1405. object o = null;
  1406. try
  1407. {
  1408. o = ToLua.ToObject(L, 1);
  1409. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1410. UnityEngine.CameraType ret = obj.cameraType;
  1411. ToLua.Push(L, ret);
  1412. return 1;
  1413. }
  1414. catch(Exception e)
  1415. {
  1416. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cameraType on a nil value" : e.Message);
  1417. }
  1418. }
  1419. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1420. static int get_layerCullDistances(IntPtr L)
  1421. {
  1422. object o = null;
  1423. try
  1424. {
  1425. o = ToLua.ToObject(L, 1);
  1426. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1427. float[] ret = obj.layerCullDistances;
  1428. ToLua.Push(L, ret);
  1429. return 1;
  1430. }
  1431. catch(Exception e)
  1432. {
  1433. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index layerCullDistances on a nil value" : e.Message);
  1434. }
  1435. }
  1436. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1437. static int get_useOcclusionCulling(IntPtr L)
  1438. {
  1439. object o = null;
  1440. try
  1441. {
  1442. o = ToLua.ToObject(L, 1);
  1443. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1444. bool ret = obj.useOcclusionCulling;
  1445. LuaDLL.lua_pushboolean(L, ret);
  1446. return 1;
  1447. }
  1448. catch(Exception e)
  1449. {
  1450. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index useOcclusionCulling on a nil value" : e.Message);
  1451. }
  1452. }
  1453. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1454. static int get_cullingMatrix(IntPtr L)
  1455. {
  1456. object o = null;
  1457. try
  1458. {
  1459. o = ToLua.ToObject(L, 1);
  1460. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1461. UnityEngine.Matrix4x4 ret = obj.cullingMatrix;
  1462. ToLua.PushValue(L, ret);
  1463. return 1;
  1464. }
  1465. catch(Exception e)
  1466. {
  1467. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cullingMatrix on a nil value" : e.Message);
  1468. }
  1469. }
  1470. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1471. static int get_backgroundColor(IntPtr L)
  1472. {
  1473. object o = null;
  1474. try
  1475. {
  1476. o = ToLua.ToObject(L, 1);
  1477. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1478. UnityEngine.Color ret = obj.backgroundColor;
  1479. ToLua.Push(L, ret);
  1480. return 1;
  1481. }
  1482. catch(Exception e)
  1483. {
  1484. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index backgroundColor on a nil value" : e.Message);
  1485. }
  1486. }
  1487. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1488. static int get_clearFlags(IntPtr L)
  1489. {
  1490. object o = null;
  1491. try
  1492. {
  1493. o = ToLua.ToObject(L, 1);
  1494. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1495. UnityEngine.CameraClearFlags ret = obj.clearFlags;
  1496. ToLua.Push(L, ret);
  1497. return 1;
  1498. }
  1499. catch(Exception e)
  1500. {
  1501. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index clearFlags on a nil value" : e.Message);
  1502. }
  1503. }
  1504. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1505. static int get_depthTextureMode(IntPtr L)
  1506. {
  1507. object o = null;
  1508. try
  1509. {
  1510. o = ToLua.ToObject(L, 1);
  1511. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1512. UnityEngine.DepthTextureMode ret = obj.depthTextureMode;
  1513. ToLua.Push(L, ret);
  1514. return 1;
  1515. }
  1516. catch(Exception e)
  1517. {
  1518. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index depthTextureMode on a nil value" : e.Message);
  1519. }
  1520. }
  1521. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1522. static int get_clearStencilAfterLightingPass(IntPtr L)
  1523. {
  1524. object o = null;
  1525. try
  1526. {
  1527. o = ToLua.ToObject(L, 1);
  1528. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1529. bool ret = obj.clearStencilAfterLightingPass;
  1530. LuaDLL.lua_pushboolean(L, ret);
  1531. return 1;
  1532. }
  1533. catch(Exception e)
  1534. {
  1535. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index clearStencilAfterLightingPass on a nil value" : e.Message);
  1536. }
  1537. }
  1538. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1539. static int get_usePhysicalProperties(IntPtr L)
  1540. {
  1541. object o = null;
  1542. try
  1543. {
  1544. o = ToLua.ToObject(L, 1);
  1545. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1546. bool ret = obj.usePhysicalProperties;
  1547. LuaDLL.lua_pushboolean(L, ret);
  1548. return 1;
  1549. }
  1550. catch(Exception e)
  1551. {
  1552. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index usePhysicalProperties on a nil value" : e.Message);
  1553. }
  1554. }
  1555. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1556. static int get_sensorSize(IntPtr L)
  1557. {
  1558. object o = null;
  1559. try
  1560. {
  1561. o = ToLua.ToObject(L, 1);
  1562. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1563. UnityEngine.Vector2 ret = obj.sensorSize;
  1564. ToLua.Push(L, ret);
  1565. return 1;
  1566. }
  1567. catch(Exception e)
  1568. {
  1569. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sensorSize on a nil value" : e.Message);
  1570. }
  1571. }
  1572. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1573. static int get_lensShift(IntPtr L)
  1574. {
  1575. object o = null;
  1576. try
  1577. {
  1578. o = ToLua.ToObject(L, 1);
  1579. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1580. UnityEngine.Vector2 ret = obj.lensShift;
  1581. ToLua.Push(L, ret);
  1582. return 1;
  1583. }
  1584. catch(Exception e)
  1585. {
  1586. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lensShift on a nil value" : e.Message);
  1587. }
  1588. }
  1589. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1590. static int get_focalLength(IntPtr L)
  1591. {
  1592. object o = null;
  1593. try
  1594. {
  1595. o = ToLua.ToObject(L, 1);
  1596. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1597. float ret = obj.focalLength;
  1598. LuaDLL.lua_pushnumber(L, ret);
  1599. return 1;
  1600. }
  1601. catch(Exception e)
  1602. {
  1603. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index focalLength on a nil value" : e.Message);
  1604. }
  1605. }
  1606. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1607. static int get_gateFit(IntPtr L)
  1608. {
  1609. object o = null;
  1610. try
  1611. {
  1612. o = ToLua.ToObject(L, 1);
  1613. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1614. UnityEngine.Camera.GateFitMode ret = obj.gateFit;
  1615. ToLua.Push(L, ret);
  1616. return 1;
  1617. }
  1618. catch(Exception e)
  1619. {
  1620. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index gateFit on a nil value" : e.Message);
  1621. }
  1622. }
  1623. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1624. static int get_rect(IntPtr L)
  1625. {
  1626. object o = null;
  1627. try
  1628. {
  1629. o = ToLua.ToObject(L, 1);
  1630. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1631. UnityEngine.Rect ret = obj.rect;
  1632. ToLua.PushValue(L, ret);
  1633. return 1;
  1634. }
  1635. catch(Exception e)
  1636. {
  1637. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rect on a nil value" : e.Message);
  1638. }
  1639. }
  1640. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1641. static int get_pixelRect(IntPtr L)
  1642. {
  1643. object o = null;
  1644. try
  1645. {
  1646. o = ToLua.ToObject(L, 1);
  1647. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1648. UnityEngine.Rect ret = obj.pixelRect;
  1649. ToLua.PushValue(L, ret);
  1650. return 1;
  1651. }
  1652. catch(Exception e)
  1653. {
  1654. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index pixelRect on a nil value" : e.Message);
  1655. }
  1656. }
  1657. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1658. static int get_pixelWidth(IntPtr L)
  1659. {
  1660. object o = null;
  1661. try
  1662. {
  1663. o = ToLua.ToObject(L, 1);
  1664. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1665. int ret = obj.pixelWidth;
  1666. LuaDLL.lua_pushinteger(L, ret);
  1667. return 1;
  1668. }
  1669. catch(Exception e)
  1670. {
  1671. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index pixelWidth on a nil value" : e.Message);
  1672. }
  1673. }
  1674. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1675. static int get_pixelHeight(IntPtr L)
  1676. {
  1677. object o = null;
  1678. try
  1679. {
  1680. o = ToLua.ToObject(L, 1);
  1681. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1682. int ret = obj.pixelHeight;
  1683. LuaDLL.lua_pushinteger(L, ret);
  1684. return 1;
  1685. }
  1686. catch(Exception e)
  1687. {
  1688. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index pixelHeight on a nil value" : e.Message);
  1689. }
  1690. }
  1691. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1692. static int get_scaledPixelWidth(IntPtr L)
  1693. {
  1694. object o = null;
  1695. try
  1696. {
  1697. o = ToLua.ToObject(L, 1);
  1698. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1699. int ret = obj.scaledPixelWidth;
  1700. LuaDLL.lua_pushinteger(L, ret);
  1701. return 1;
  1702. }
  1703. catch(Exception e)
  1704. {
  1705. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scaledPixelWidth on a nil value" : e.Message);
  1706. }
  1707. }
  1708. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1709. static int get_scaledPixelHeight(IntPtr L)
  1710. {
  1711. object o = null;
  1712. try
  1713. {
  1714. o = ToLua.ToObject(L, 1);
  1715. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1716. int ret = obj.scaledPixelHeight;
  1717. LuaDLL.lua_pushinteger(L, ret);
  1718. return 1;
  1719. }
  1720. catch(Exception e)
  1721. {
  1722. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scaledPixelHeight on a nil value" : e.Message);
  1723. }
  1724. }
  1725. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1726. static int get_targetTexture(IntPtr L)
  1727. {
  1728. object o = null;
  1729. try
  1730. {
  1731. o = ToLua.ToObject(L, 1);
  1732. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1733. UnityEngine.RenderTexture ret = obj.targetTexture;
  1734. ToLua.Push(L, ret);
  1735. return 1;
  1736. }
  1737. catch(Exception e)
  1738. {
  1739. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index targetTexture on a nil value" : e.Message);
  1740. }
  1741. }
  1742. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1743. static int get_activeTexture(IntPtr L)
  1744. {
  1745. object o = null;
  1746. try
  1747. {
  1748. o = ToLua.ToObject(L, 1);
  1749. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1750. UnityEngine.RenderTexture ret = obj.activeTexture;
  1751. ToLua.Push(L, ret);
  1752. return 1;
  1753. }
  1754. catch(Exception e)
  1755. {
  1756. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index activeTexture on a nil value" : e.Message);
  1757. }
  1758. }
  1759. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1760. static int get_targetDisplay(IntPtr L)
  1761. {
  1762. object o = null;
  1763. try
  1764. {
  1765. o = ToLua.ToObject(L, 1);
  1766. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1767. int ret = obj.targetDisplay;
  1768. LuaDLL.lua_pushinteger(L, ret);
  1769. return 1;
  1770. }
  1771. catch(Exception e)
  1772. {
  1773. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index targetDisplay on a nil value" : e.Message);
  1774. }
  1775. }
  1776. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1777. static int get_cameraToWorldMatrix(IntPtr L)
  1778. {
  1779. object o = null;
  1780. try
  1781. {
  1782. o = ToLua.ToObject(L, 1);
  1783. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1784. UnityEngine.Matrix4x4 ret = obj.cameraToWorldMatrix;
  1785. ToLua.PushValue(L, ret);
  1786. return 1;
  1787. }
  1788. catch(Exception e)
  1789. {
  1790. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cameraToWorldMatrix on a nil value" : e.Message);
  1791. }
  1792. }
  1793. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1794. static int get_worldToCameraMatrix(IntPtr L)
  1795. {
  1796. object o = null;
  1797. try
  1798. {
  1799. o = ToLua.ToObject(L, 1);
  1800. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1801. UnityEngine.Matrix4x4 ret = obj.worldToCameraMatrix;
  1802. ToLua.PushValue(L, ret);
  1803. return 1;
  1804. }
  1805. catch(Exception e)
  1806. {
  1807. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index worldToCameraMatrix on a nil value" : e.Message);
  1808. }
  1809. }
  1810. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1811. static int get_projectionMatrix(IntPtr L)
  1812. {
  1813. object o = null;
  1814. try
  1815. {
  1816. o = ToLua.ToObject(L, 1);
  1817. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1818. UnityEngine.Matrix4x4 ret = obj.projectionMatrix;
  1819. ToLua.PushValue(L, ret);
  1820. return 1;
  1821. }
  1822. catch(Exception e)
  1823. {
  1824. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index projectionMatrix on a nil value" : e.Message);
  1825. }
  1826. }
  1827. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1828. static int get_nonJitteredProjectionMatrix(IntPtr L)
  1829. {
  1830. object o = null;
  1831. try
  1832. {
  1833. o = ToLua.ToObject(L, 1);
  1834. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1835. UnityEngine.Matrix4x4 ret = obj.nonJitteredProjectionMatrix;
  1836. ToLua.PushValue(L, ret);
  1837. return 1;
  1838. }
  1839. catch(Exception e)
  1840. {
  1841. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index nonJitteredProjectionMatrix on a nil value" : e.Message);
  1842. }
  1843. }
  1844. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1845. static int get_useJitteredProjectionMatrixForTransparentRendering(IntPtr L)
  1846. {
  1847. object o = null;
  1848. try
  1849. {
  1850. o = ToLua.ToObject(L, 1);
  1851. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1852. bool ret = obj.useJitteredProjectionMatrixForTransparentRendering;
  1853. LuaDLL.lua_pushboolean(L, ret);
  1854. return 1;
  1855. }
  1856. catch(Exception e)
  1857. {
  1858. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index useJitteredProjectionMatrixForTransparentRendering on a nil value" : e.Message);
  1859. }
  1860. }
  1861. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1862. static int get_previousViewProjectionMatrix(IntPtr L)
  1863. {
  1864. object o = null;
  1865. try
  1866. {
  1867. o = ToLua.ToObject(L, 1);
  1868. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1869. UnityEngine.Matrix4x4 ret = obj.previousViewProjectionMatrix;
  1870. ToLua.PushValue(L, ret);
  1871. return 1;
  1872. }
  1873. catch(Exception e)
  1874. {
  1875. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index previousViewProjectionMatrix on a nil value" : e.Message);
  1876. }
  1877. }
  1878. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1879. static int get_main(IntPtr L)
  1880. {
  1881. try
  1882. {
  1883. ToLua.Push(L, UnityEngine.Camera.main);
  1884. return 1;
  1885. }
  1886. catch(Exception e)
  1887. {
  1888. return LuaDLL.toluaL_exception(L, e);
  1889. }
  1890. }
  1891. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1892. static int get_current(IntPtr L)
  1893. {
  1894. try
  1895. {
  1896. ToLua.Push(L, UnityEngine.Camera.current);
  1897. return 1;
  1898. }
  1899. catch(Exception e)
  1900. {
  1901. return LuaDLL.toluaL_exception(L, e);
  1902. }
  1903. }
  1904. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1905. static int get_scene(IntPtr L)
  1906. {
  1907. object o = null;
  1908. try
  1909. {
  1910. o = ToLua.ToObject(L, 1);
  1911. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1912. UnityEngine.SceneManagement.Scene ret = obj.scene;
  1913. ToLua.PushValue(L, ret);
  1914. return 1;
  1915. }
  1916. catch(Exception e)
  1917. {
  1918. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scene on a nil value" : e.Message);
  1919. }
  1920. }
  1921. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1922. static int get_stereoEnabled(IntPtr L)
  1923. {
  1924. object o = null;
  1925. try
  1926. {
  1927. o = ToLua.ToObject(L, 1);
  1928. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1929. bool ret = obj.stereoEnabled;
  1930. LuaDLL.lua_pushboolean(L, ret);
  1931. return 1;
  1932. }
  1933. catch(Exception e)
  1934. {
  1935. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index stereoEnabled on a nil value" : e.Message);
  1936. }
  1937. }
  1938. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1939. static int get_stereoSeparation(IntPtr L)
  1940. {
  1941. object o = null;
  1942. try
  1943. {
  1944. o = ToLua.ToObject(L, 1);
  1945. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1946. float ret = obj.stereoSeparation;
  1947. LuaDLL.lua_pushnumber(L, ret);
  1948. return 1;
  1949. }
  1950. catch(Exception e)
  1951. {
  1952. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index stereoSeparation on a nil value" : e.Message);
  1953. }
  1954. }
  1955. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1956. static int get_stereoConvergence(IntPtr L)
  1957. {
  1958. object o = null;
  1959. try
  1960. {
  1961. o = ToLua.ToObject(L, 1);
  1962. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1963. float ret = obj.stereoConvergence;
  1964. LuaDLL.lua_pushnumber(L, ret);
  1965. return 1;
  1966. }
  1967. catch(Exception e)
  1968. {
  1969. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index stereoConvergence on a nil value" : e.Message);
  1970. }
  1971. }
  1972. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1973. static int get_areVRStereoViewMatricesWithinSingleCullTolerance(IntPtr L)
  1974. {
  1975. object o = null;
  1976. try
  1977. {
  1978. o = ToLua.ToObject(L, 1);
  1979. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1980. bool ret = obj.areVRStereoViewMatricesWithinSingleCullTolerance;
  1981. LuaDLL.lua_pushboolean(L, ret);
  1982. return 1;
  1983. }
  1984. catch(Exception e)
  1985. {
  1986. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index areVRStereoViewMatricesWithinSingleCullTolerance on a nil value" : e.Message);
  1987. }
  1988. }
  1989. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  1990. static int get_stereoTargetEye(IntPtr L)
  1991. {
  1992. object o = null;
  1993. try
  1994. {
  1995. o = ToLua.ToObject(L, 1);
  1996. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  1997. UnityEngine.StereoTargetEyeMask ret = obj.stereoTargetEye;
  1998. ToLua.Push(L, ret);
  1999. return 1;
  2000. }
  2001. catch(Exception e)
  2002. {
  2003. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index stereoTargetEye on a nil value" : e.Message);
  2004. }
  2005. }
  2006. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2007. static int get_stereoActiveEye(IntPtr L)
  2008. {
  2009. object o = null;
  2010. try
  2011. {
  2012. o = ToLua.ToObject(L, 1);
  2013. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2014. UnityEngine.Camera.MonoOrStereoscopicEye ret = obj.stereoActiveEye;
  2015. ToLua.Push(L, ret);
  2016. return 1;
  2017. }
  2018. catch(Exception e)
  2019. {
  2020. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index stereoActiveEye on a nil value" : e.Message);
  2021. }
  2022. }
  2023. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2024. static int get_allCamerasCount(IntPtr L)
  2025. {
  2026. try
  2027. {
  2028. LuaDLL.lua_pushinteger(L, UnityEngine.Camera.allCamerasCount);
  2029. return 1;
  2030. }
  2031. catch(Exception e)
  2032. {
  2033. return LuaDLL.toluaL_exception(L, e);
  2034. }
  2035. }
  2036. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2037. static int get_allCameras(IntPtr L)
  2038. {
  2039. try
  2040. {
  2041. ToLua.Push(L, UnityEngine.Camera.allCameras);
  2042. return 1;
  2043. }
  2044. catch(Exception e)
  2045. {
  2046. return LuaDLL.toluaL_exception(L, e);
  2047. }
  2048. }
  2049. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2050. static int get_commandBufferCount(IntPtr L)
  2051. {
  2052. object o = null;
  2053. try
  2054. {
  2055. o = ToLua.ToObject(L, 1);
  2056. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2057. int ret = obj.commandBufferCount;
  2058. LuaDLL.lua_pushinteger(L, ret);
  2059. return 1;
  2060. }
  2061. catch(Exception e)
  2062. {
  2063. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index commandBufferCount on a nil value" : e.Message);
  2064. }
  2065. }
  2066. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2067. static int set_onPreCull(IntPtr L)
  2068. {
  2069. try
  2070. {
  2071. UnityEngine.Camera.CameraCallback arg0 = null;
  2072. LuaTypes funcType2 = LuaDLL.lua_type(L, 2);
  2073. if (funcType2 != LuaTypes.LUA_TFUNCTION)
  2074. {
  2075. arg0 = (UnityEngine.Camera.CameraCallback)ToLua.CheckObject(L, 2, typeof(UnityEngine.Camera.CameraCallback));
  2076. }
  2077. else
  2078. {
  2079. LuaFunction func = ToLua.ToLuaFunction(L, 2);
  2080. arg0 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Camera.CameraCallback), func) as UnityEngine.Camera.CameraCallback;
  2081. }
  2082. UnityEngine.Camera.onPreCull = arg0;
  2083. return 0;
  2084. }
  2085. catch(Exception e)
  2086. {
  2087. return LuaDLL.toluaL_exception(L, e);
  2088. }
  2089. }
  2090. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2091. static int set_onPreRender(IntPtr L)
  2092. {
  2093. try
  2094. {
  2095. UnityEngine.Camera.CameraCallback arg0 = null;
  2096. LuaTypes funcType2 = LuaDLL.lua_type(L, 2);
  2097. if (funcType2 != LuaTypes.LUA_TFUNCTION)
  2098. {
  2099. arg0 = (UnityEngine.Camera.CameraCallback)ToLua.CheckObject(L, 2, typeof(UnityEngine.Camera.CameraCallback));
  2100. }
  2101. else
  2102. {
  2103. LuaFunction func = ToLua.ToLuaFunction(L, 2);
  2104. arg0 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Camera.CameraCallback), func) as UnityEngine.Camera.CameraCallback;
  2105. }
  2106. UnityEngine.Camera.onPreRender = arg0;
  2107. return 0;
  2108. }
  2109. catch(Exception e)
  2110. {
  2111. return LuaDLL.toluaL_exception(L, e);
  2112. }
  2113. }
  2114. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2115. static int set_onPostRender(IntPtr L)
  2116. {
  2117. try
  2118. {
  2119. UnityEngine.Camera.CameraCallback arg0 = null;
  2120. LuaTypes funcType2 = LuaDLL.lua_type(L, 2);
  2121. if (funcType2 != LuaTypes.LUA_TFUNCTION)
  2122. {
  2123. arg0 = (UnityEngine.Camera.CameraCallback)ToLua.CheckObject(L, 2, typeof(UnityEngine.Camera.CameraCallback));
  2124. }
  2125. else
  2126. {
  2127. LuaFunction func = ToLua.ToLuaFunction(L, 2);
  2128. arg0 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Camera.CameraCallback), func) as UnityEngine.Camera.CameraCallback;
  2129. }
  2130. UnityEngine.Camera.onPostRender = arg0;
  2131. return 0;
  2132. }
  2133. catch(Exception e)
  2134. {
  2135. return LuaDLL.toluaL_exception(L, e);
  2136. }
  2137. }
  2138. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2139. static int set_nearClipPlane(IntPtr L)
  2140. {
  2141. object o = null;
  2142. try
  2143. {
  2144. o = ToLua.ToObject(L, 1);
  2145. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2146. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  2147. obj.nearClipPlane = arg0;
  2148. return 0;
  2149. }
  2150. catch(Exception e)
  2151. {
  2152. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index nearClipPlane on a nil value" : e.Message);
  2153. }
  2154. }
  2155. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2156. static int set_farClipPlane(IntPtr L)
  2157. {
  2158. object o = null;
  2159. try
  2160. {
  2161. o = ToLua.ToObject(L, 1);
  2162. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2163. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  2164. obj.farClipPlane = arg0;
  2165. return 0;
  2166. }
  2167. catch(Exception e)
  2168. {
  2169. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index farClipPlane on a nil value" : e.Message);
  2170. }
  2171. }
  2172. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2173. static int set_fieldOfView(IntPtr L)
  2174. {
  2175. object o = null;
  2176. try
  2177. {
  2178. o = ToLua.ToObject(L, 1);
  2179. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2180. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  2181. obj.fieldOfView = arg0;
  2182. return 0;
  2183. }
  2184. catch(Exception e)
  2185. {
  2186. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index fieldOfView on a nil value" : e.Message);
  2187. }
  2188. }
  2189. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2190. static int set_renderingPath(IntPtr L)
  2191. {
  2192. object o = null;
  2193. try
  2194. {
  2195. o = ToLua.ToObject(L, 1);
  2196. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2197. UnityEngine.RenderingPath arg0 = (UnityEngine.RenderingPath)ToLua.CheckObject(L, 2, typeof(UnityEngine.RenderingPath));
  2198. obj.renderingPath = arg0;
  2199. return 0;
  2200. }
  2201. catch(Exception e)
  2202. {
  2203. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index renderingPath on a nil value" : e.Message);
  2204. }
  2205. }
  2206. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2207. static int set_allowHDR(IntPtr L)
  2208. {
  2209. object o = null;
  2210. try
  2211. {
  2212. o = ToLua.ToObject(L, 1);
  2213. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2214. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  2215. obj.allowHDR = arg0;
  2216. return 0;
  2217. }
  2218. catch(Exception e)
  2219. {
  2220. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index allowHDR on a nil value" : e.Message);
  2221. }
  2222. }
  2223. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2224. static int set_allowMSAA(IntPtr L)
  2225. {
  2226. object o = null;
  2227. try
  2228. {
  2229. o = ToLua.ToObject(L, 1);
  2230. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2231. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  2232. obj.allowMSAA = arg0;
  2233. return 0;
  2234. }
  2235. catch(Exception e)
  2236. {
  2237. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index allowMSAA on a nil value" : e.Message);
  2238. }
  2239. }
  2240. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2241. static int set_allowDynamicResolution(IntPtr L)
  2242. {
  2243. object o = null;
  2244. try
  2245. {
  2246. o = ToLua.ToObject(L, 1);
  2247. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2248. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  2249. obj.allowDynamicResolution = arg0;
  2250. return 0;
  2251. }
  2252. catch(Exception e)
  2253. {
  2254. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index allowDynamicResolution on a nil value" : e.Message);
  2255. }
  2256. }
  2257. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2258. static int set_forceIntoRenderTexture(IntPtr L)
  2259. {
  2260. object o = null;
  2261. try
  2262. {
  2263. o = ToLua.ToObject(L, 1);
  2264. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2265. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  2266. obj.forceIntoRenderTexture = arg0;
  2267. return 0;
  2268. }
  2269. catch(Exception e)
  2270. {
  2271. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index forceIntoRenderTexture on a nil value" : e.Message);
  2272. }
  2273. }
  2274. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2275. static int set_orthographicSize(IntPtr L)
  2276. {
  2277. object o = null;
  2278. try
  2279. {
  2280. o = ToLua.ToObject(L, 1);
  2281. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2282. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  2283. obj.orthographicSize = arg0;
  2284. return 0;
  2285. }
  2286. catch(Exception e)
  2287. {
  2288. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index orthographicSize on a nil value" : e.Message);
  2289. }
  2290. }
  2291. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2292. static int set_orthographic(IntPtr L)
  2293. {
  2294. object o = null;
  2295. try
  2296. {
  2297. o = ToLua.ToObject(L, 1);
  2298. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2299. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  2300. obj.orthographic = arg0;
  2301. return 0;
  2302. }
  2303. catch(Exception e)
  2304. {
  2305. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index orthographic on a nil value" : e.Message);
  2306. }
  2307. }
  2308. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2309. static int set_opaqueSortMode(IntPtr L)
  2310. {
  2311. object o = null;
  2312. try
  2313. {
  2314. o = ToLua.ToObject(L, 1);
  2315. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2316. UnityEngine.Rendering.OpaqueSortMode arg0 = (UnityEngine.Rendering.OpaqueSortMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rendering.OpaqueSortMode));
  2317. obj.opaqueSortMode = arg0;
  2318. return 0;
  2319. }
  2320. catch(Exception e)
  2321. {
  2322. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index opaqueSortMode on a nil value" : e.Message);
  2323. }
  2324. }
  2325. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2326. static int set_transparencySortMode(IntPtr L)
  2327. {
  2328. object o = null;
  2329. try
  2330. {
  2331. o = ToLua.ToObject(L, 1);
  2332. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2333. UnityEngine.TransparencySortMode arg0 = (UnityEngine.TransparencySortMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.TransparencySortMode));
  2334. obj.transparencySortMode = arg0;
  2335. return 0;
  2336. }
  2337. catch(Exception e)
  2338. {
  2339. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index transparencySortMode on a nil value" : e.Message);
  2340. }
  2341. }
  2342. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2343. static int set_transparencySortAxis(IntPtr L)
  2344. {
  2345. object o = null;
  2346. try
  2347. {
  2348. o = ToLua.ToObject(L, 1);
  2349. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2350. UnityEngine.Vector3 arg0 = ToLua.ToVector3(L, 2);
  2351. obj.transparencySortAxis = arg0;
  2352. return 0;
  2353. }
  2354. catch(Exception e)
  2355. {
  2356. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index transparencySortAxis on a nil value" : e.Message);
  2357. }
  2358. }
  2359. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2360. static int set_depth(IntPtr L)
  2361. {
  2362. object o = null;
  2363. try
  2364. {
  2365. o = ToLua.ToObject(L, 1);
  2366. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2367. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  2368. obj.depth = arg0;
  2369. return 0;
  2370. }
  2371. catch(Exception e)
  2372. {
  2373. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index depth on a nil value" : e.Message);
  2374. }
  2375. }
  2376. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2377. static int set_aspect(IntPtr L)
  2378. {
  2379. object o = null;
  2380. try
  2381. {
  2382. o = ToLua.ToObject(L, 1);
  2383. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2384. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  2385. obj.aspect = arg0;
  2386. return 0;
  2387. }
  2388. catch(Exception e)
  2389. {
  2390. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index aspect on a nil value" : e.Message);
  2391. }
  2392. }
  2393. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2394. static int set_cullingMask(IntPtr L)
  2395. {
  2396. object o = null;
  2397. try
  2398. {
  2399. o = ToLua.ToObject(L, 1);
  2400. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2401. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  2402. obj.cullingMask = arg0;
  2403. return 0;
  2404. }
  2405. catch(Exception e)
  2406. {
  2407. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cullingMask on a nil value" : e.Message);
  2408. }
  2409. }
  2410. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2411. static int set_eventMask(IntPtr L)
  2412. {
  2413. object o = null;
  2414. try
  2415. {
  2416. o = ToLua.ToObject(L, 1);
  2417. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2418. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  2419. obj.eventMask = arg0;
  2420. return 0;
  2421. }
  2422. catch(Exception e)
  2423. {
  2424. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index eventMask on a nil value" : e.Message);
  2425. }
  2426. }
  2427. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2428. static int set_layerCullSpherical(IntPtr L)
  2429. {
  2430. object o = null;
  2431. try
  2432. {
  2433. o = ToLua.ToObject(L, 1);
  2434. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2435. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  2436. obj.layerCullSpherical = arg0;
  2437. return 0;
  2438. }
  2439. catch(Exception e)
  2440. {
  2441. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index layerCullSpherical on a nil value" : e.Message);
  2442. }
  2443. }
  2444. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2445. static int set_cameraType(IntPtr L)
  2446. {
  2447. object o = null;
  2448. try
  2449. {
  2450. o = ToLua.ToObject(L, 1);
  2451. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2452. UnityEngine.CameraType arg0 = (UnityEngine.CameraType)ToLua.CheckObject(L, 2, typeof(UnityEngine.CameraType));
  2453. obj.cameraType = arg0;
  2454. return 0;
  2455. }
  2456. catch(Exception e)
  2457. {
  2458. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cameraType on a nil value" : e.Message);
  2459. }
  2460. }
  2461. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2462. static int set_layerCullDistances(IntPtr L)
  2463. {
  2464. object o = null;
  2465. try
  2466. {
  2467. o = ToLua.ToObject(L, 1);
  2468. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2469. float[] arg0 = ToLua.CheckNumberArray<float>(L, 2);
  2470. obj.layerCullDistances = arg0;
  2471. return 0;
  2472. }
  2473. catch(Exception e)
  2474. {
  2475. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index layerCullDistances on a nil value" : e.Message);
  2476. }
  2477. }
  2478. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2479. static int set_useOcclusionCulling(IntPtr L)
  2480. {
  2481. object o = null;
  2482. try
  2483. {
  2484. o = ToLua.ToObject(L, 1);
  2485. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2486. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  2487. obj.useOcclusionCulling = arg0;
  2488. return 0;
  2489. }
  2490. catch(Exception e)
  2491. {
  2492. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index useOcclusionCulling on a nil value" : e.Message);
  2493. }
  2494. }
  2495. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2496. static int set_cullingMatrix(IntPtr L)
  2497. {
  2498. object o = null;
  2499. try
  2500. {
  2501. o = ToLua.ToObject(L, 1);
  2502. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2503. UnityEngine.Matrix4x4 arg0 = (UnityEngine.Matrix4x4)ToLua.CheckObject(L, 2, typeof(UnityEngine.Matrix4x4));
  2504. obj.cullingMatrix = arg0;
  2505. return 0;
  2506. }
  2507. catch(Exception e)
  2508. {
  2509. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index cullingMatrix on a nil value" : e.Message);
  2510. }
  2511. }
  2512. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2513. static int set_backgroundColor(IntPtr L)
  2514. {
  2515. object o = null;
  2516. try
  2517. {
  2518. o = ToLua.ToObject(L, 1);
  2519. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2520. UnityEngine.Color arg0 = ToLua.ToColor(L, 2);
  2521. obj.backgroundColor = arg0;
  2522. return 0;
  2523. }
  2524. catch(Exception e)
  2525. {
  2526. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index backgroundColor on a nil value" : e.Message);
  2527. }
  2528. }
  2529. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2530. static int set_clearFlags(IntPtr L)
  2531. {
  2532. object o = null;
  2533. try
  2534. {
  2535. o = ToLua.ToObject(L, 1);
  2536. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2537. UnityEngine.CameraClearFlags arg0 = (UnityEngine.CameraClearFlags)ToLua.CheckObject(L, 2, typeof(UnityEngine.CameraClearFlags));
  2538. obj.clearFlags = arg0;
  2539. return 0;
  2540. }
  2541. catch(Exception e)
  2542. {
  2543. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index clearFlags on a nil value" : e.Message);
  2544. }
  2545. }
  2546. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2547. static int set_depthTextureMode(IntPtr L)
  2548. {
  2549. object o = null;
  2550. try
  2551. {
  2552. o = ToLua.ToObject(L, 1);
  2553. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2554. UnityEngine.DepthTextureMode arg0 = (UnityEngine.DepthTextureMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.DepthTextureMode));
  2555. obj.depthTextureMode = arg0;
  2556. return 0;
  2557. }
  2558. catch(Exception e)
  2559. {
  2560. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index depthTextureMode on a nil value" : e.Message);
  2561. }
  2562. }
  2563. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2564. static int set_clearStencilAfterLightingPass(IntPtr L)
  2565. {
  2566. object o = null;
  2567. try
  2568. {
  2569. o = ToLua.ToObject(L, 1);
  2570. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2571. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  2572. obj.clearStencilAfterLightingPass = arg0;
  2573. return 0;
  2574. }
  2575. catch(Exception e)
  2576. {
  2577. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index clearStencilAfterLightingPass on a nil value" : e.Message);
  2578. }
  2579. }
  2580. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2581. static int set_usePhysicalProperties(IntPtr L)
  2582. {
  2583. object o = null;
  2584. try
  2585. {
  2586. o = ToLua.ToObject(L, 1);
  2587. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2588. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  2589. obj.usePhysicalProperties = arg0;
  2590. return 0;
  2591. }
  2592. catch(Exception e)
  2593. {
  2594. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index usePhysicalProperties on a nil value" : e.Message);
  2595. }
  2596. }
  2597. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2598. static int set_sensorSize(IntPtr L)
  2599. {
  2600. object o = null;
  2601. try
  2602. {
  2603. o = ToLua.ToObject(L, 1);
  2604. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2605. UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
  2606. obj.sensorSize = arg0;
  2607. return 0;
  2608. }
  2609. catch(Exception e)
  2610. {
  2611. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index sensorSize on a nil value" : e.Message);
  2612. }
  2613. }
  2614. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2615. static int set_lensShift(IntPtr L)
  2616. {
  2617. object o = null;
  2618. try
  2619. {
  2620. o = ToLua.ToObject(L, 1);
  2621. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2622. UnityEngine.Vector2 arg0 = ToLua.ToVector2(L, 2);
  2623. obj.lensShift = arg0;
  2624. return 0;
  2625. }
  2626. catch(Exception e)
  2627. {
  2628. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index lensShift on a nil value" : e.Message);
  2629. }
  2630. }
  2631. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2632. static int set_focalLength(IntPtr L)
  2633. {
  2634. object o = null;
  2635. try
  2636. {
  2637. o = ToLua.ToObject(L, 1);
  2638. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2639. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  2640. obj.focalLength = arg0;
  2641. return 0;
  2642. }
  2643. catch(Exception e)
  2644. {
  2645. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index focalLength on a nil value" : e.Message);
  2646. }
  2647. }
  2648. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2649. static int set_gateFit(IntPtr L)
  2650. {
  2651. object o = null;
  2652. try
  2653. {
  2654. o = ToLua.ToObject(L, 1);
  2655. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2656. UnityEngine.Camera.GateFitMode arg0 = (UnityEngine.Camera.GateFitMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.Camera.GateFitMode));
  2657. obj.gateFit = arg0;
  2658. return 0;
  2659. }
  2660. catch(Exception e)
  2661. {
  2662. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index gateFit on a nil value" : e.Message);
  2663. }
  2664. }
  2665. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2666. static int set_rect(IntPtr L)
  2667. {
  2668. object o = null;
  2669. try
  2670. {
  2671. o = ToLua.ToObject(L, 1);
  2672. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2673. UnityEngine.Rect arg0 = (UnityEngine.Rect)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rect));
  2674. obj.rect = arg0;
  2675. return 0;
  2676. }
  2677. catch(Exception e)
  2678. {
  2679. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index rect on a nil value" : e.Message);
  2680. }
  2681. }
  2682. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2683. static int set_pixelRect(IntPtr L)
  2684. {
  2685. object o = null;
  2686. try
  2687. {
  2688. o = ToLua.ToObject(L, 1);
  2689. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2690. UnityEngine.Rect arg0 = (UnityEngine.Rect)ToLua.CheckObject(L, 2, typeof(UnityEngine.Rect));
  2691. obj.pixelRect = arg0;
  2692. return 0;
  2693. }
  2694. catch(Exception e)
  2695. {
  2696. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index pixelRect on a nil value" : e.Message);
  2697. }
  2698. }
  2699. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2700. static int set_targetTexture(IntPtr L)
  2701. {
  2702. object o = null;
  2703. try
  2704. {
  2705. o = ToLua.ToObject(L, 1);
  2706. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2707. UnityEngine.RenderTexture arg0 = (UnityEngine.RenderTexture)ToLua.CheckUnityObject(L, 2, typeof(UnityEngine.RenderTexture));
  2708. obj.targetTexture = arg0;
  2709. return 0;
  2710. }
  2711. catch(Exception e)
  2712. {
  2713. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index targetTexture on a nil value" : e.Message);
  2714. }
  2715. }
  2716. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2717. static int set_targetDisplay(IntPtr L)
  2718. {
  2719. object o = null;
  2720. try
  2721. {
  2722. o = ToLua.ToObject(L, 1);
  2723. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2724. int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
  2725. obj.targetDisplay = arg0;
  2726. return 0;
  2727. }
  2728. catch(Exception e)
  2729. {
  2730. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index targetDisplay on a nil value" : e.Message);
  2731. }
  2732. }
  2733. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2734. static int set_worldToCameraMatrix(IntPtr L)
  2735. {
  2736. object o = null;
  2737. try
  2738. {
  2739. o = ToLua.ToObject(L, 1);
  2740. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2741. UnityEngine.Matrix4x4 arg0 = (UnityEngine.Matrix4x4)ToLua.CheckObject(L, 2, typeof(UnityEngine.Matrix4x4));
  2742. obj.worldToCameraMatrix = arg0;
  2743. return 0;
  2744. }
  2745. catch(Exception e)
  2746. {
  2747. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index worldToCameraMatrix on a nil value" : e.Message);
  2748. }
  2749. }
  2750. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2751. static int set_projectionMatrix(IntPtr L)
  2752. {
  2753. object o = null;
  2754. try
  2755. {
  2756. o = ToLua.ToObject(L, 1);
  2757. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2758. UnityEngine.Matrix4x4 arg0 = (UnityEngine.Matrix4x4)ToLua.CheckObject(L, 2, typeof(UnityEngine.Matrix4x4));
  2759. obj.projectionMatrix = arg0;
  2760. return 0;
  2761. }
  2762. catch(Exception e)
  2763. {
  2764. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index projectionMatrix on a nil value" : e.Message);
  2765. }
  2766. }
  2767. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2768. static int set_nonJitteredProjectionMatrix(IntPtr L)
  2769. {
  2770. object o = null;
  2771. try
  2772. {
  2773. o = ToLua.ToObject(L, 1);
  2774. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2775. UnityEngine.Matrix4x4 arg0 = (UnityEngine.Matrix4x4)ToLua.CheckObject(L, 2, typeof(UnityEngine.Matrix4x4));
  2776. obj.nonJitteredProjectionMatrix = arg0;
  2777. return 0;
  2778. }
  2779. catch(Exception e)
  2780. {
  2781. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index nonJitteredProjectionMatrix on a nil value" : e.Message);
  2782. }
  2783. }
  2784. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2785. static int set_useJitteredProjectionMatrixForTransparentRendering(IntPtr L)
  2786. {
  2787. object o = null;
  2788. try
  2789. {
  2790. o = ToLua.ToObject(L, 1);
  2791. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2792. bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
  2793. obj.useJitteredProjectionMatrixForTransparentRendering = arg0;
  2794. return 0;
  2795. }
  2796. catch(Exception e)
  2797. {
  2798. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index useJitteredProjectionMatrixForTransparentRendering on a nil value" : e.Message);
  2799. }
  2800. }
  2801. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2802. static int set_scene(IntPtr L)
  2803. {
  2804. object o = null;
  2805. try
  2806. {
  2807. o = ToLua.ToObject(L, 1);
  2808. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2809. UnityEngine.SceneManagement.Scene arg0 = (UnityEngine.SceneManagement.Scene)ToLua.CheckObject(L, 2, typeof(UnityEngine.SceneManagement.Scene));
  2810. obj.scene = arg0;
  2811. return 0;
  2812. }
  2813. catch(Exception e)
  2814. {
  2815. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index scene on a nil value" : e.Message);
  2816. }
  2817. }
  2818. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2819. static int set_stereoSeparation(IntPtr L)
  2820. {
  2821. object o = null;
  2822. try
  2823. {
  2824. o = ToLua.ToObject(L, 1);
  2825. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2826. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  2827. obj.stereoSeparation = arg0;
  2828. return 0;
  2829. }
  2830. catch(Exception e)
  2831. {
  2832. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index stereoSeparation on a nil value" : e.Message);
  2833. }
  2834. }
  2835. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2836. static int set_stereoConvergence(IntPtr L)
  2837. {
  2838. object o = null;
  2839. try
  2840. {
  2841. o = ToLua.ToObject(L, 1);
  2842. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2843. float arg0 = (float)LuaDLL.luaL_checknumber(L, 2);
  2844. obj.stereoConvergence = arg0;
  2845. return 0;
  2846. }
  2847. catch(Exception e)
  2848. {
  2849. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index stereoConvergence on a nil value" : e.Message);
  2850. }
  2851. }
  2852. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2853. static int set_stereoTargetEye(IntPtr L)
  2854. {
  2855. object o = null;
  2856. try
  2857. {
  2858. o = ToLua.ToObject(L, 1);
  2859. UnityEngine.Camera obj = (UnityEngine.Camera)o;
  2860. UnityEngine.StereoTargetEyeMask arg0 = (UnityEngine.StereoTargetEyeMask)ToLua.CheckObject(L, 2, typeof(UnityEngine.StereoTargetEyeMask));
  2861. obj.stereoTargetEye = arg0;
  2862. return 0;
  2863. }
  2864. catch(Exception e)
  2865. {
  2866. return LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index stereoTargetEye on a nil value" : e.Message);
  2867. }
  2868. }
  2869. [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
  2870. static int UnityEngine_Camera_CameraCallback(IntPtr L)
  2871. {
  2872. try
  2873. {
  2874. int count = LuaDLL.lua_gettop(L);
  2875. LuaFunction func = ToLua.CheckLuaFunction(L, 1);
  2876. if (count == 1)
  2877. {
  2878. Delegate arg1 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Camera.CameraCallback), func);
  2879. ToLua.Push(L, arg1);
  2880. }
  2881. else
  2882. {
  2883. LuaTable self = ToLua.CheckLuaTable(L, 2);
  2884. Delegate arg1 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Camera.CameraCallback), func, self);
  2885. ToLua.Push(L, arg1);
  2886. }
  2887. return 1;
  2888. }
  2889. catch(Exception e)
  2890. {
  2891. return LuaDLL.toluaL_exception(L, e);
  2892. }
  2893. }
  2894. }