Пример #1
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityEngine.Light gen_ret = new UnityEngine.Light();
                    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.Light constructor!"));
        }
Пример #2
0
        static int _m_AddCommandBuffer(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && translator.Assignable <UnityEngine.Rendering.LightEvent>(L, 2) && translator.Assignable <UnityEngine.Rendering.CommandBuffer>(L, 3))
                {
                    UnityEngine.Rendering.LightEvent    _evt; translator.Get(L, 2, out _evt);
                    UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer));

                    gen_to_be_invoked.AddCommandBuffer(
                        _evt,
                        _buffer);



                    return(0);
                }
                if (gen_param_count == 4 && translator.Assignable <UnityEngine.Rendering.LightEvent>(L, 2) && translator.Assignable <UnityEngine.Rendering.CommandBuffer>(L, 3) && translator.Assignable <UnityEngine.Rendering.ShadowMapPass>(L, 4))
                {
                    UnityEngine.Rendering.LightEvent    _evt; translator.Get(L, 2, out _evt);
                    UnityEngine.Rendering.CommandBuffer _buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer));
                    UnityEngine.Rendering.ShadowMapPass _shadowPassMask; translator.Get(L, 4, out _shadowPassMask);

                    gen_to_be_invoked.AddCommandBuffer(
                        _evt,
                        _buffer,
                        _shadowPassMask);



                    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.Light.AddCommandBuffer!"));
        }
Пример #3
0
        static StackObject *set_color_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.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.Color @value = (UnityEngine.Color) typeof(UnityEngine.Color).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

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

            instance_of_this_method.color = value;

            return(__ret);
        }
Пример #4
0
        static int _m_RemoveAllCommandBuffers(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    __cl_gen_to_be_invoked.RemoveAllCommandBuffers(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Пример #5
0
        static int _m_SetLightDirty(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    gen_to_be_invoked.SetLightDirty(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #6
0
        static int _m_RemoveCommandBuffers(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    UnityEngine.Rendering.LightEvent _evt; translator.Get(L, 2, out _evt);

                    gen_to_be_invoked.RemoveCommandBuffers(_evt);



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Пример #7
0
        static int _m_GetCommandBuffers(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    UnityEngine.Rendering.LightEvent evt; translator.Get(L, 2, out evt);

                    UnityEngine.Rendering.CommandBuffer[] __cl_gen_ret = __cl_gen_to_be_invoked.GetCommandBuffers(evt);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Пример #8
0
        static int _m_RemoveCommandBuffer(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    UnityEngine.Rendering.LightEvent    evt; translator.Get(L, 2, out evt);
                    UnityEngine.Rendering.CommandBuffer buffer = (UnityEngine.Rendering.CommandBuffer)translator.GetObject(L, 3, typeof(UnityEngine.Rendering.CommandBuffer));

                    __cl_gen_to_be_invoked.RemoveCommandBuffer(evt, buffer);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Пример #9
0
 public static TARGET colorTransition(this TARGET target, UnityEngine.Color value, float duration, LeanEase ease = LeanEase.Smooth)
 {
     Method.LeanLightColor.Register(target, value, duration, ease); return(target);
 }
Пример #10
0
 protected override bool ResolveDependencies()
 {
     this.lightComponent = this.GetComponent <UnityEngine.Light>();
     return(this.lightComponent != null);
 }
Пример #11
0
 public static TARGET intensityTransition(this TARGET target, float value, float duration, LeanEase ease = LeanEase.Smooth)
 {
     Method.LeanLightIntensity.Register(target, value, duration, ease); return(target);
 }