static public int GetCustomParticleData(IntPtr l) {
		try {
			#if DEBUG
			var method = System.Reflection.MethodBase.GetCurrentMethod();
			string methodName = GetMethodName(method);
			#if UNITY_5_5_OR_NEWER
			UnityEngine.Profiling.Profiler.BeginSample(methodName);
			#else
			Profiler.BeginSample(methodName);
			#endif
			#endif
			UnityEngine.ParticleSystem self=(UnityEngine.ParticleSystem)checkSelf(l);
			System.Collections.Generic.List<UnityEngine.Vector4> a1;
			checkType(l,2,out a1);
			UnityEngine.ParticleSystemCustomData a2;
			a2 = (UnityEngine.ParticleSystemCustomData)LuaDLL.luaL_checkinteger(l, 3);
			var ret=self.GetCustomParticleData(a1,a2);
			pushValue(l,true);
			pushValue(l,ret);
			return 2;
		}
		catch(Exception e) {
			return error(l,e);
		}
		#if DEBUG
		finally {
			#if UNITY_5_5_OR_NEWER
			UnityEngine.Profiling.Profiler.EndSample();
			#else
			Profiler.EndSample();
			#endif
		}
		#endif
	}
 static int QPYX_GetCustomParticleData_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 3);
         UnityEngine.ParticleSystem QPYX_obj_YXQP = (UnityEngine.ParticleSystem)ToLua.CheckObject(L_YXQP, 1, typeof(UnityEngine.ParticleSystem));
         System.Collections.Generic.List <UnityEngine.Vector4> QPYX_arg0_YXQP = (System.Collections.Generic.List <UnityEngine.Vector4>)ToLua.CheckObject(L_YXQP, 2, typeof(System.Collections.Generic.List <UnityEngine.Vector4>));
         UnityEngine.ParticleSystemCustomData QPYX_arg1_YXQP = (UnityEngine.ParticleSystemCustomData)ToLua.CheckObject(L_YXQP, 3, typeof(UnityEngine.ParticleSystemCustomData));
         int QPYX_o_YXQP = QPYX_obj_YXQP.GetCustomParticleData(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
         LuaDLL.lua_pushinteger(L_YXQP, QPYX_o_YXQP);
         return(1);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
 static public int GetCustomParticleData(IntPtr l)
 {
     try {
         UnityEngine.ParticleSystem self = (UnityEngine.ParticleSystem)checkSelf(l);
         System.Collections.Generic.List <UnityEngine.Vector4> a1;
         checkType(l, 2, out a1);
         UnityEngine.ParticleSystemCustomData a2;
         checkEnum(l, 3, out a2);
         var ret = self.GetCustomParticleData(a1, a2);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int GetCustomParticleData(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         UnityEngine.ParticleSystem obj = (UnityEngine.ParticleSystem)ToLua.CheckObject(L, 1, typeof(UnityEngine.ParticleSystem));
         System.Collections.Generic.List <UnityEngine.Vector4> arg0 = (System.Collections.Generic.List <UnityEngine.Vector4>)ToLua.CheckObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Vector4>));
         UnityEngine.ParticleSystemCustomData arg1 = (UnityEngine.ParticleSystemCustomData)ToLua.CheckObject(L, 3, typeof(UnityEngine.ParticleSystemCustomData));
         int o = obj.GetCustomParticleData(arg0, arg1);
         LuaDLL.lua_pushinteger(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
示例#5
0
        static int _m_GetCustomParticleData(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    System.Collections.Generic.List <UnityEngine.Vector4> customData = (System.Collections.Generic.List <UnityEngine.Vector4>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <UnityEngine.Vector4>));
                    UnityEngine.ParticleSystemCustomData streamIndex; translator.Get(L, 3, out streamIndex);

                    int __cl_gen_ret = __cl_gen_to_be_invoked.GetCustomParticleData(customData, streamIndex);
                    LuaAPI.xlua_pushinteger(L, __cl_gen_ret);



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