Skip to content

Commit 3c1af1d

Browse files
committed
Fix OnPostprocessAllAssets for older Unity versions
1 parent 8d9de5b commit 3c1af1d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Packages/webxr/Editor/WebXRBuildProcessor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ public void OnPostprocessBuild(BuildReport report)
7979
CleanOldSettings();
8080
}
8181

82+
#if UNITY_2023_2_OR_NEWER || UNITY_2022_3 || UNITY_2021_3
8283
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths, bool didDomainReload)
84+
#else
85+
static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
86+
#endif
8387
{
8488
#if !HAS_URP
8589
Debug.LogError(@"WebXR Export requires Universal Render Pipeline,

0 commit comments

Comments
 (0)