static public int GetSharedMaterials(IntPtr l)
 {
     try {
         UnityEngine.Renderer self = (UnityEngine.Renderer)checkSelf(l);
         System.Collections.Generic.List <UnityEngine.Material> a1;
         checkType(l, 2, out a1);
         self.GetSharedMaterials(a1);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemple #2
0
 static int GetSharedMaterials(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         UnityEngine.Renderer obj = (UnityEngine.Renderer)ToLua.CheckObject <UnityEngine.Renderer>(L, 1);
         System.Collections.Generic.List <UnityEngine.Material> arg0 = (System.Collections.Generic.List <UnityEngine.Material>)ToLua.CheckObject(L, 2, TypeTraits <System.Collections.Generic.List <UnityEngine.Material> > .type);
         obj.GetSharedMaterials(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
    static int GetSharedMaterials(IntPtr L)
    {
#if UNITY_EDITOR
        ToluaProfiler.AddCallRecord("UnityEngine.Renderer.GetSharedMaterials");
#endif
        try
        {
            ToLua.CheckArgsCount(L, 2);
            UnityEngine.Renderer obj = (UnityEngine.Renderer)ToLua.CheckObject <UnityEngine.Renderer>(L, 1);
            System.Collections.Generic.List <UnityEngine.Material> arg0 = (System.Collections.Generic.List <UnityEngine.Material>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Material>));
            obj.GetSharedMaterials(arg0);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
        static int _m_GetSharedMaterials(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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



                {
                    System.Collections.Generic.List <UnityEngine.Material> _m = (System.Collections.Generic.List <UnityEngine.Material>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Material>));

                    gen_to_be_invoked.GetSharedMaterials(_m);



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