> ## 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.

# PopUpStep

> Gates progression on UI popup acknowledgment or completion.

**File:** `Assets/_MolcaSDK/_VR/Scripts/Scenario/Steps/PopUpStep.cs`\
**Base:** [Step](/core/step)

## When to use

Use `Popup Step` when a VR training scenario needs this specific interaction as a step in a sequence. Configure entirely in the Inspector — no code required.

## Role

Blocks the [SequenceController](/core/sequence-controller) until UI conditions are met (exact rules in serialized fields).

## Code

**`PopUpStep.cs`** requires **`ModalManager.Instance`**, **`StepInfo`** auxiliary (auto-added in **`OnValidate`**), and shows either **`customModal`** (`ModalConfirmation`) or **`ShowRegularConfirmation`**. The **Yes** callback calls **`Complete()`**. Optional **`autoComplete`** + **`autoCompleteDelay`** invokes **`Complete()`** on a timer. The same **`StepInfo`** type feeds [Scenario UI](/vr/scenario-ui) **task-list** titles when that HUD is present — see [VR step auxiliaries](/vr/steps/vr-step-auxiliaries).

```csharp theme={null}
// Title/description come from StepInfo aux + Localization keys on yesText.
// Ensure StepInfo and ModalManager exist in the scene before activating the step.
```

## Troubleshooting

* **`ModalManager not found`** — Bootstrap [Modal manager](/core/modal-manager) / Runtime prefab so **`Instance`** exists.
* **`StepInfo not found`** — Add **StepInfo** auxiliary to the step (Inspector should add via **`OnValidate`**).
* **Button does nothing** — If **`yesText.disabled`**, confirmation passes **null** callbacks for yes — enable text or provide a non-disabled **`DynamicLocalization`**.

## Related

* [Modal manager](/core/modal-manager)
* [Shared modals](/shared/modals)
* [Step (base class)](/core/step)
* [Localization](/core/localization) — **`DynamicLocalization`**

## Unity Editor

<Frame hint="PopUpStep + referenced Canvas / modal." caption="PopUpStep Inspector">
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/ptmolcateknologinusantara/images/features/vr/steps/popup-step-inspector.png" alt="PopUpStep in Unity Inspector" />
</Frame>
