---
title: loop
product: Unity Editor
version: '6000.6'
latest_version: '7000.0'
status: This page documents version 6000.6. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/6000.6/script-reference/unityengine/particlesystem/mainmodule/loop
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/particlesystem/mainmodule/loop.md
last_updated: 2026-09-14
generated_at: 2026-11-11T19:36:44.089Z
locale: en-us
---

# loop

> Specifies whether the Particle System is looping.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.ParticleSystemModule

```csharp
public bool loop { get; set; }
```

### Remarks

If you disable looping on a playing Particle System, it stops at the end of the current loop.

### Examples

```csharp
using UnityEngine;
using System.Collections;

[RequireComponent(typeof(ParticleSystem))]
public class ExampleClass : MonoBehaviour
{
    private ParticleSystem ps;

    void Start()
    {
        ps = GetComponent<ParticleSystem>();

        var main = ps.main;
        main.loop = true;
    }
}
```
