static public int SetCustomParticleData(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);
			self.SetCustomParticleData(a1,a2);
			pushValue(l,true);
			return 1;
		}
		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_SetCustomParticleData_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));
         QPYX_obj_YXQP.SetCustomParticleData(QPYX_arg0_YXQP, QPYX_arg1_YXQP);
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
 static public int SetCustomParticleData(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);
         self.SetCustomParticleData(a1, a2);
         return(0);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
 static int SetCustomParticleData(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));
         obj.SetCustomParticleData(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #5
0
        static int _m_SetCustomParticleData(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);

                    __cl_gen_to_be_invoked.SetCustomParticleData(customData, streamIndex);



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