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.ProceduralMaterial o = (UnityEngine.ProceduralMaterial)obj; o.cacheSize = cacheSize; o.animationUpdateRate = animationUpdateRate; o.isLoadTimeGenerated = isLoadTimeGenerated; o.preset = preset; o.isReadable = isReadable; o.RebuildTexturesImmediately(); return(o); }
static int _m_RebuildTexturesImmediately(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.ProceduralMaterial __cl_gen_to_be_invoked = (UnityEngine.ProceduralMaterial)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.RebuildTexturesImmediately( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }