int UnityEngineRenderer_m_GetPropertyBlock(RealStatePtr L, int gen_param_count)
        {
            ObjectTranslator translator = this;


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

            if (gen_param_count == 2 && translator.Assignable <UnityEngine.MaterialPropertyBlock>(L, 2))
            {
                UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 2, typeof(UnityEngine.MaterialPropertyBlock));

                gen_to_be_invoked.GetPropertyBlock(_properties);



                return(0);
            }
            if (gen_param_count == 3 && translator.Assignable <UnityEngine.MaterialPropertyBlock>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
            {
                UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 2, typeof(UnityEngine.MaterialPropertyBlock));
                int _materialIndex = LuaAPI.xlua_tointeger(L, 3);

                gen_to_be_invoked.GetPropertyBlock(_properties, _materialIndex);



                return(0);
            }


            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Renderer.GetPropertyBlock!"));
        }
Пример #2
0
        static int _m_GetPropertyBlock(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && translator.Assignable <UnityEngine.MaterialPropertyBlock>(L, 2))
                {
                    UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 2, typeof(UnityEngine.MaterialPropertyBlock));

                    gen_to_be_invoked.GetPropertyBlock(
                        _properties);



                    return(0);
                }
                if (gen_param_count == 3 && translator.Assignable <UnityEngine.MaterialPropertyBlock>(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    UnityEngine.MaterialPropertyBlock _properties = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 2, typeof(UnityEngine.MaterialPropertyBlock));
                    int _materialIndex = LuaAPI.xlua_tointeger(L, 3);

                    gen_to_be_invoked.GetPropertyBlock(
                        _properties,
                        _materialIndex);



                    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.Renderer.GetPropertyBlock!"));
        }
 public void ManualUpdate()
 {
     if ((null == _renderer) || (null == _propBlock))
     {
         return;
     }
     _renderer.GetPropertyBlock(_propBlock);
     _propBlock.SetColor("_Color", color);
     _propBlock.SetVector("_UVScale", uvScale);
     _propBlock.SetVector("_PointA", p0);
     _renderer.SetPropertyBlock(_propBlock);
 }
Пример #4
0
    public void ManualUpdate()
    {
        if ((null == _renderer) || (null == _propBlock))
        {
            return;
        }
        _renderer.GetPropertyBlock(_propBlock);
        _propBlock.SetColor("_ColorA", colorA);
        _propBlock.SetVector("_UVScale", uvScale);

        _propBlock.SetVector("_Eye0", eye0);
        _propBlock.SetVector("_EyeBrow0", eyeBrow0);
        _propBlock.SetVector("_Eye1", eye1);
        _propBlock.SetVector("_EyeBrow1", eyeBrow1);
        _propBlock.SetVector("_Data0", data0);

        _renderer.SetPropertyBlock(_propBlock);
    }
        static int _m_GetPropertyBlock(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    UnityEngine.MaterialPropertyBlock dest = (UnityEngine.MaterialPropertyBlock)translator.GetObject(L, 2, typeof(UnityEngine.MaterialPropertyBlock));

                    __cl_gen_to_be_invoked.GetPropertyBlock(dest);



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