static public int constructor(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); UnityEngine.Camera.GateFitParameters o; if (argc == 3) { UnityEngine.Camera.GateFitMode a1; checkEnum(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); o = new UnityEngine.Camera.GateFitParameters(a1, a2); pushValue(l, true); pushValue(l, o); return(2); } else if (argc <= 2) { o = new UnityEngine.Camera.GateFitParameters(); pushValue(l, true); pushValue(l, o); return(2); } return(error(l, "New object failed.")); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { #if DEBUG var method = System.Reflection.MethodBase.GetCurrentMethod(); string methodName = GetMethodName(method); #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.BeginSample(methodName); #else Profiler.BeginSample(methodName); #endif #endif UnityEngine.Camera.GateFitParameters o; UnityEngine.Camera.GateFitMode a1; a1 = (UnityEngine.Camera.GateFitMode)LuaDLL.luaL_checkinteger(l, 2); System.Single a2; checkType(l, 3, out a2); o = new UnityEngine.Camera.GateFitParameters(a1, a2); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } #if DEBUG finally { #if UNITY_5_5_OR_NEWER UnityEngine.Profiling.Profiler.EndSample(); #else Profiler.EndSample(); #endif } #endif }
static public int ctor_s(IntPtr l) { try { UnityEngine.Camera.GateFitParameters o; o = new UnityEngine.Camera.GateFitParameters(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int ctor__GateFitMode__Single_s(IntPtr l) { try { UnityEngine.Camera.GateFitParameters o; UnityEngine.Camera.GateFitMode a1; checkEnum(l, 1, out a1); System.Single a2; checkType(l, 2, out a2); o = new UnityEngine.Camera.GateFitParameters(a1, a2); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }