コード例 #1
0
        /// <summary>
        ///     scales linerenderer copied from parent object
        /// </summary>
        /// <param name="scaleFactor"></param>
        /// <param name="lr"></param>
        public void scaleLine(float scaleFactor, UnityEngine.LineRenderer lr)
        {
            UnityEngine.Vector3[] newlineVerts =
                new UnityEngine.Vector3[GetComponent <UnityEngine.LineRenderer>().positionCount];

            for (int i = 0; i < newlineVerts.Length; i++)
            {
                newlineVerts[i] *= scaleFactor;
            }

            lr.SetPositions(newlineVerts);
        }
コード例 #2
0
        static int _s_set_loop(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.loop = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
コード例 #3
0
        static int _g_get_colorGradient(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.colorGradient);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
コード例 #4
0
        static int _g_get_generateLightingData(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.generateLightingData);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
コード例 #5
0
        static int _g_get_numCapVertices(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.numCapVertices);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
コード例 #6
0
        static int _s_set_alignment(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.LineRenderer  gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1);
                UnityEngine.LineAlignment gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.alignment = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
コード例 #7
0
        static int _s_set_textureMode(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.LineRenderer    __cl_gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1);
                UnityEngine.LineTextureMode __cl_gen_value; translator.Get(L, 2, out __cl_gen_value);
                __cl_gen_to_be_invoked.textureMode = __cl_gen_value;
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
コード例 #8
0
        static int _m_GetPositions(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Vector3[]>(L, 2))
                {
                    UnityEngine.Vector3[] _positions = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[]));

                    var gen_ret = gen_to_be_invoked.GetPositions(_positions);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(2);
                }
                if (gen_param_count == 2 && translator.Assignable <Unity.Collections.NativeArray <UnityEngine.Vector3> >(L, 2))
                {
                    Unity.Collections.NativeArray <UnityEngine.Vector3> _positions; translator.Get(L, 2, out _positions);

                    var gen_ret = gen_to_be_invoked.GetPositions(_positions);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(2);
                }
                if (gen_param_count == 2 && translator.Assignable <Unity.Collections.NativeSlice <UnityEngine.Vector3> >(L, 2))
                {
                    Unity.Collections.NativeSlice <UnityEngine.Vector3> _positions; translator.Get(L, 2, out _positions);

                    var gen_ret = gen_to_be_invoked.GetPositions(_positions);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(2);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LineRenderer.GetPositions!"));
        }
コード例 #9
0
        /// <summary>
        ///     copies components from parent object
        /// </summary>
        public void Start()
        {
            childGameObject = new UnityEngine.GameObject();

            childGameObject.transform.parent        = transform;
            childGameObject.transform.localPosition = offset;
            childGameObject.transform.localScale    = UnityEngine.Vector3.one;
            childGameObject.transform.localRotation = UnityEngine.Quaternion.identity;
            childlineRend = childGameObject.AddComponent <UnityEngine.LineRenderer>();
            childmeshFilt = childGameObject.AddComponent <UnityEngine.MeshFilter>();

            copyLine();
            copyMesh();
        }
コード例 #10
0
        static StackObject *get_alignment_28(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.LineRenderer instance_of_this_method = (UnityEngine.LineRenderer) typeof(UnityEngine.LineRenderer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.alignment;

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
コード例 #11
0
        static StackObject *get_shadowBias_22(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.LineRenderer instance_of_this_method = (UnityEngine.LineRenderer) typeof(UnityEngine.LineRenderer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.shadowBias;

            __ret->ObjectType       = ObjectTypes.Float;
            *(float *)&__ret->Value = result_of_this_method;
            return(__ret + 1);
        }
コード例 #12
0
        static StackObject *get_generateLightingData_24(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.LineRenderer instance_of_this_method = (UnityEngine.LineRenderer) typeof(UnityEngine.LineRenderer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.generateLightingData;

            __ret->ObjectType = ObjectTypes.Integer;
            __ret->Value      = result_of_this_method ? 1 : 0;
            return(__ret + 1);
        }
コード例 #13
0
        static StackObject *Simplify_30(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Single @tolerance = *(float *)&ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.LineRenderer instance_of_this_method = (UnityEngine.LineRenderer) typeof(UnityEngine.LineRenderer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.Simplify(@tolerance);

            return(__ret);
        }
コード例 #14
0
        static StackObject *set_generateLightingData_25(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @value = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.LineRenderer instance_of_this_method = (UnityEngine.LineRenderer) typeof(UnityEngine.LineRenderer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.generateLightingData = value;

            return(__ret);
        }
コード例 #15
0
        static StackObject *GetPosition_21(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Int32 @index = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.LineRenderer instance_of_this_method = (UnityEngine.LineRenderer) typeof(UnityEngine.LineRenderer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.GetPosition(@index);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
コード例 #16
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    var gen_ret = new UnityEngine.LineRenderer();
                    translator.Push(L, gen_ret);

                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LineRenderer constructor!"));
        }
コード例 #17
0
        static StackObject *set_colorGradient_36(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Gradient @value = (UnityEngine.Gradient) typeof(UnityEngine.Gradient).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.LineRenderer instance_of_this_method = (UnityEngine.LineRenderer) typeof(UnityEngine.LineRenderer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.colorGradient = value;

            return(__ret);
        }
コード例 #18
0
        static StackObject *SetPositions_38(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Vector3[] @positions = (UnityEngine.Vector3[]) typeof(UnityEngine.Vector3[]).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.LineRenderer instance_of_this_method = (UnityEngine.LineRenderer) typeof(UnityEngine.LineRenderer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetPositions(@positions);

            return(__ret);
        }
コード例 #19
0
        static StackObject *get_colorGradient_35(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.LineRenderer instance_of_this_method = (UnityEngine.LineRenderer) typeof(UnityEngine.LineRenderer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.colorGradient;

            object obj_result_of_this_method = result_of_this_method;

            if (obj_result_of_this_method is CrossBindingAdaptorType)
            {
                return(ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance));
            }
            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
コード例 #20
0
        static StackObject *BakeMesh_31(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @useTransform = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Mesh @mesh = (UnityEngine.Mesh) typeof(UnityEngine.Mesh).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.LineRenderer instance_of_this_method = (UnityEngine.LineRenderer) typeof(UnityEngine.LineRenderer).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.BakeMesh(@mesh, @useTransform);

            return(__ret);
        }
コード例 #21
0
        /// <summary>
        ///     Function to render the outline of a circle
        /// </summary>
        public void renderCircle(UnityEngine.Vector3 norm1, UnityEngine.Vector3 norm2)
        {
            //array of vector3s for vertices
            UnityEngine.Vector3[] vertices = new UnityEngine.Vector3[n];

            //math for rendering circle
            for (int i = 0; i < n; i++)
            {
                vertices[i] = radius * (UnityEngine.Mathf.Sin(i * UnityEngine.Mathf.PI * 2 / (n - 1)) * norm1) +
                              radius * (UnityEngine.Mathf.Cos(i * UnityEngine.Mathf.PI * 2 / (n - 1)) * norm2 + circleCenter);
            }

            //Render circle
            UnityEngine.LineRenderer lineRenderer = GetComponent <UnityEngine.LineRenderer>();
            //lineRenderer.material = new Material(Shader.Find("Particles/Additive"));
            lineRenderer.startColor    = UnityEngine.Color.blue;
            lineRenderer.endColor      = UnityEngine.Color.blue;
            lineRenderer.startWidth    = SpencerStudyControl.lineRendererWidth;
            lineRenderer.endWidth      = SpencerStudyControl.lineRendererWidth;
            lineRenderer.positionCount = n;
            lineRenderer.SetPositions(vertices);
        }
コード例 #22
0
        static int _m_SetPositions(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.LineRenderer __cl_gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.Vector3[] positions = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[]));

                    __cl_gen_to_be_invoked.SetPositions(positions);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #23
0
        static int _m_Simplify(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1);



                {
                    float _tolerance = (float)LuaAPI.lua_tonumber(L, 2);

                    gen_to_be_invoked.Simplify(_tolerance);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
コード例 #24
0
 public override void ReadFrom(object obj)
 {
     base.ReadFrom(obj);
     if (obj == null)
     {
         return;
     }
     UnityEngine.LineRenderer o = (UnityEngine.LineRenderer)obj;
     startWidth        = o.startWidth;
     endWidth          = o.endWidth;
     widthCurve        = Read(widthCurve, o.widthCurve);
     widthMultiplier   = o.widthMultiplier;
     startColor        = o.startColor;
     endColor          = o.endColor;
     colorGradient     = Read(colorGradient, o.colorGradient);
     positionCount     = o.positionCount;
     useWorldSpace     = o.useWorldSpace;
     loop              = o.loop;
     numCornerVertices = o.numCornerVertices;
     numCapVertices    = o.numCapVertices;
     textureMode       = (uint)o.textureMode;
     alignment         = (uint)o.alignment;
 }
コード例 #25
0
        static int _m_SetPosition(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.LineRenderer __cl_gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1);


            try {
                {
                    int index = LuaAPI.xlua_tointeger(L, 2);
                    UnityEngine.Vector3 position; translator.Get(L, 3, out position);

                    __cl_gen_to_be_invoked.SetPosition(index, position);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
コード例 #26
0
 public override object WriteTo(object obj, System.Collections.Generic.Dictionary <long, UnityEngine.Object> objects)
 {
     obj = base.WriteTo(obj, objects);
     if (obj == null)
     {
         return(null);
     }
     UnityEngine.LineRenderer o = (UnityEngine.LineRenderer)obj;
     o.startWidth        = startWidth;
     o.endWidth          = endWidth;
     o.widthCurve        = Write(o.widthCurve, widthCurve, objects);
     o.widthMultiplier   = widthMultiplier;
     o.startColor        = startColor;
     o.endColor          = endColor;
     o.colorGradient     = Write(o.colorGradient, colorGradient, objects);
     o.positionCount     = positionCount;
     o.useWorldSpace     = useWorldSpace;
     o.loop              = loop;
     o.numCornerVertices = numCornerVertices;
     o.numCapVertices    = numCapVertices;
     o.textureMode       = (UnityEngine.LineTextureMode)textureMode;
     o.alignment         = (UnityEngine.LineAlignment)alignment;
     return(o);
 }
コード例 #27
0
        static int _m_GetPosition(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1);



                {
                    int _index = LuaAPI.xlua_tointeger(L, 2);

                    var gen_ret = gen_to_be_invoked.GetPosition(_index);
                    translator.PushUnityEngineVector3(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
コード例 #28
0
        static int _m_GetPositions(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1);



                {
                    UnityEngine.Vector3[] _positions = (UnityEngine.Vector3[])translator.GetObject(L, 2, typeof(UnityEngine.Vector3[]));

                    int gen_ret = gen_to_be_invoked.GetPositions(_positions);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(2);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
コード例 #29
0
        static int _m_BakeMesh(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.LineRenderer gen_to_be_invoked = (UnityEngine.LineRenderer)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && translator.Assignable <UnityEngine.Mesh>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    UnityEngine.Mesh _mesh         = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
                    bool             _useTransform = LuaAPI.lua_toboolean(L, 3);

                    gen_to_be_invoked.BakeMesh(_mesh, _useTransform);



                    return(0);
                }
                if (gen_param_count == 2 && translator.Assignable <UnityEngine.Mesh>(L, 2))
                {
                    UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));

                    gen_to_be_invoked.BakeMesh(_mesh);



                    return(0);
                }
                if (gen_param_count == 4 && translator.Assignable <UnityEngine.Mesh>(L, 2) && translator.Assignable <UnityEngine.Camera>(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4))
                {
                    UnityEngine.Mesh   _mesh   = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
                    UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera));
                    bool _useTransform         = LuaAPI.lua_toboolean(L, 4);

                    gen_to_be_invoked.BakeMesh(_mesh, _camera, _useTransform);



                    return(0);
                }
                if (gen_param_count == 3 && translator.Assignable <UnityEngine.Mesh>(L, 2) && translator.Assignable <UnityEngine.Camera>(L, 3))
                {
                    UnityEngine.Mesh   _mesh   = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
                    UnityEngine.Camera _camera = (UnityEngine.Camera)translator.GetObject(L, 3, typeof(UnityEngine.Camera));

                    gen_to_be_invoked.BakeMesh(_mesh, _camera);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.LineRenderer.BakeMesh!"));
        }