コード例 #1
0
        static int _g_get_format(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                UnityEngine.ProceduralTexture __cl_gen_to_be_invoked = (UnityEngine.ProceduralTexture)translator.FastGetCSObj(L, 1);
                translator.Push(L, __cl_gen_to_be_invoked.format);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
コード例 #2
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityEngine.ProceduralTexture __cl_gen_ret = new UnityEngine.ProceduralTexture();
                    translator.Push(L, __cl_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.ProceduralTexture constructor!"));
        }
コード例 #3
0
        static int _m_GetProceduralOutputType(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    UnityEngine.ProceduralOutputType __cl_gen_ret = __cl_gen_to_be_invoked.GetProceduralOutputType(  );
                    translator.Push(L, __cl_gen_ret);



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


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


            try {
                {
                    string textureName = LuaAPI.lua_tostring(L, 2);

                    UnityEngine.ProceduralTexture __cl_gen_ret = __cl_gen_to_be_invoked.GetGeneratedTexture(textureName);
                    translator.Push(L, __cl_gen_ret);



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