Skip to main content
File: Assets/_MolcaSDK/_VR/Scripts/Scenario/Steps/PopUpStep.cs
Base: Step

Role

Blocks the SequenceController 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.
// 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 / 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.

Unity Editor

PopUpStep + referenced Canvas / modal.

PopUpStep in Unity Inspector