static int set_particleRenderMode(IntPtr L) { UnityEngine.ParticleRenderer obj = (UnityEngine.ParticleRenderer)ToLua.ToObject(L, 1); UnityEngine.ParticleRenderMode arg0 = (UnityEngine.ParticleRenderMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.ParticleRenderMode)); try { obj.particleRenderMode = arg0; } catch (Exception e) { return(LuaDLL.luaL_error(L, obj == null ? "attempt to index particleRenderMode on a nil value" : e.Message)); } return(0); }
static int get_particleRenderMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.ParticleRenderer obj = (UnityEngine.ParticleRenderer)o; UnityEngine.ParticleRenderMode ret = obj.particleRenderMode; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index particleRenderMode on a nil value" : e.Message)); } }
static int set_particleRenderMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.ParticleRenderer obj = (UnityEngine.ParticleRenderer)o; UnityEngine.ParticleRenderMode arg0 = (UnityEngine.ParticleRenderMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.ParticleRenderMode)); obj.particleRenderMode = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index particleRenderMode on a nil value")); } }