Walkthrough 6: Dynamic Runtime URL Loading
Learn how to initialize or switch web pages dynamically at runtime from game save data, text fields, or API responses.
🎯 Objective
Load custom URLs on demand rather than relying only on predefined URLs.
🛠️ Method A: Initialize Later at Runtime
- In the Details Panel of
QuestWebViewComponent, uncheck:bInitializeOnBeginPlay=False
- When your game logic is ready (e.g. after receiving a URL from a server or player input):
- Call
InitializeWithURL(InURL):- Initializes the hardware
VirtualDisplaypipeline and navigates to the specified URL in a single step!
- Initializes the hardware
🛠️ Method B: Dynamic URL Switching on Active Screens
If the screen is already initialized and running:
- Call
LoadURL(NewUrl)directly to navigate immediately to any new web destination.