# duration

> The duration of the Particle System in seconds (Read Only).

## Definition

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

> **Warning:**
>
> **Deprecated.** duration property is deprecated. Use main.duration instead.

```csharp
public float duration { get; }
```
