Used in singleplayer and multiplayer, contains important data.
Init
- In PIE the URL is made in
UGameInstance::StartPlayInEditorGameInstance. FUrlConfig FURL::UrlConfigis initialized on engine init (UEngine::Init) withFURL::StaticInit.
Portal
In UWorld::SpawnPlayActor, AGameModeBase::Login, AGameModeBase::InitNewPlayer the passed Portal (that’s notably used in AGameModeBase::FindPlayerStart_Implementation with PlayerStartTag to find a player start) comes from the URL.
Warning regading
Current Camera LocationSetting a portal overrides this setting in PIE
To address this issue in PIE you can override Login in the game mode and read
PlaySettings->LastExecutedPlayModeLocation(withULevelEditorPlaySettings)
To set your portal string:
- go in
DefaultEngine.ini - if it doesn’t already exist, add a
URLsection - under this section, add a
Portalkey - write your string next as the value Full result:
[URL]
Portal=StartPortal