Steps to reproduce:
- Open the attached Project
- Open Scene "SampleScene"
- Navigate to File > Build Profiles > Web and select "Switch Platform"
- Select "Housefly Nom" in the Project Browser
- Navigateand to Edit > Rendering > Materials > Convert Selected Built-In Materials to URP and observe the Console
- Enter Play Mode
Actual results: **
Errors logged when converting Material:
"UnityException: GetActiveBuildProfile can only be called from the main thread."
"Could not add platformSupportModule UnityEditor.Android.TargetExtension, try rebuilding the module: Exception has been thrown by the target of an invocation."
Errors like the second one are also present mentioning other installed platforms
When entering Play Mode the Editor crashes on:
RaiseException
CleanupAfterLoad
LoadSceneOperation::CompletePreloadManagerLoadSceneEditor
LoadSceneOperation::IntegrateMainThread
PreloadManager::UpdatePreloadingSingleStep
Expected results: No crash occurs
Reproducible with versions: 6000.1.0a9, 6000.1.0b2
Not reproducible with versions: 2022.3.56f1, 6000.0.34f1, 6000.1.0a8
Tested on (OS): Windows 11