Пример #1
0
        /// <summary>
        /// Gets the stream of custom per-particle data.
        /// </summary>
        /// <param name="customDatas">The array of per-particle data.</param>
        /// <returns>The processed array of per-particle data.</returns>
        public int GetCustomParticleData(List <Vector4> customDatas)
        {
            if (isExploded)
            {
                return(LocalParticleSystem.GetCustomParticleData(customDatas, ParticleSystemCustomData.Custom1));
            }

            return(0);
        }
Пример #2
0
        /// <summary>
        /// Gets the particles of this Particle System.
        /// </summary>
        /// <param name="particles">Output particle buffer, containing the current particle state.</param>
        /// <returns>The number of particles written to the input particle array (the number of particles currently alive).</returns>
        public int GetParticles(ParticleSystem.Particle[] particles)
        {
            if (isExploded)
            {
                return(LocalParticleSystem.GetParticles(particles));
            }

            return(0);
        }