Skip to content

Commit 082b43a

Browse files
authored
Merge pull request #343 from De-Panther/fix_postprocessassets
Fix OnPostprocessAllAssets for older Unity versions
2 parents 8d9de5b + 3c1af1d commit 082b43a

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)