> ## Documentation Index
> Fetch the complete documentation index at: https://docs-unity.molca.id/llms.txt
> Use this file to discover all available pages before exploring further.

# DelayStep

> Waits for a configurable duration before completing.

**Namespace:** `Molca.Sequence`\
**File:** `Packages/com.molca.core/Runtime/Sequence/Step/DelayStep.cs`

## Role

`DelayStep` introduces a timed wait in a sequence. It completes automatically after the configured `delayInSeconds` has elapsed. Pausing the sequence also pauses the delay timer.

## Inspector

* **`delayInSeconds`** — duration in seconds before the step auto-completes (default: 1).

## Code

```csharp theme={null}
using Molca.Sequence;
using UnityEngine;

public class SequenceWithDelay : MonoBehaviour
{
    [SerializeField] private SequenceController sequence;

    private void Start()
    {
        // Add a 3-second wait step dynamically
        var delayObj = new GameObject("WaitStep");
        var delay = delayObj.AddComponent<DelayStep>();
        delay.Initialize(sequence.RefId);
        // Configure in Inspector instead for production use
    }
}
```

## Related

* [Step (base class)](/core/step)
* [Core step types](/core/core-step-types)
