Skip to content

Commit ef159b9

Browse files
committed
Fix WebXRBuildProcessor error when using legacy WebXRCamera
1 parent 707757b commit ef159b9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Packages/webxr/Editor/WebXRBuildProcessor.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,17 @@ static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAsse
8686
#endif
8787
{
8888
#if !HAS_URP
89-
Debug.LogError(@"WebXR Export requires Universal Render Pipeline,
89+
bool needsURP = true;
90+
WebXRSettings settings = WebXRSettings.GetSettings();
91+
if (settings != null && settings.DisableXRDisplaySubsystem)
92+
{
93+
needsURP = false;
94+
}
95+
if (needsURP)
96+
{
97+
Debug.LogError(@"WebXR Export requires Universal Render Pipeline,
9098
using Built-in Render Pipeline might cause issues.");
99+
}
91100
#endif
92101
if (PlayerSettings.colorSpace != ColorSpace.Gamma)
93102
{

0 commit comments

Comments
 (0)