Assets/_MolcaSDK/_VR/Scripts/Scenario/Steps/PopUpStep.csBase: 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.
Troubleshooting
ModalManager not found— Bootstrap Modal manager / Runtime prefab soInstanceexists.StepInfo not found— Add StepInfo auxiliary to the step (Inspector should add viaOnValidate).- Button does nothing — If
yesText.disabled, confirmation passes null callbacks for yes — enable text or provide a non-disabledDynamicLocalization.
Related
- Modal manager
- Shared modals
- Step (base class)
- Localization —
DynamicLocalization
Unity Editor
PopUpStep + referenced Canvas / modal.
