# How to freeze particle system?

I have set particle system of duration 5 seconds.

But, I wouldn't like particle system to repete but to be frozen in fourth second forever.

How to do that?

You can do it with Pause() function of ParticleSystem class. Here is an example;

using UnityEngine;
using System.Collections;

public class ParticleController : MonoBehaviour {

public ParticleSystem particles;

// Update is called once per frame
void Update () {
//After 4 seconds, pause particles

• @Wildfire This script is written in a way that you can put it on anything and then assign the particle system you want to control with it to it by assigning it in the inspector. If you want this to automatically affect the particle system of the same game object, add this to the Start method: particles = gameObject.GetComponent<ParticleSystem>() – Philipp May 25 '17 at 11:56
• You can create a public List<ParticleSystem> particleSystems in ParticleController class. That will allow you to use inspector to drag ParticleSystem objects in to the ParticleController. When you enter a positive number other than 0 in the size attribute of the list, the slots will open for you to drag the objects. – Tolga Şen May 25 '17 at 20:54