From 2458c9a9baa483a9a52673507502e38f6483d9e1 Mon Sep 17 00:00:00 2001 From: walon Date: Mon, 16 Dec 2024 19:22:56 +0800 Subject: [PATCH] [fix] fix the issue in Unity 6000 where the modification of the trimmed AOT DLL output directory for the visionOS build target caused CopyStrippedAOTAssemblies::GetStripAssembliesDir2021 to fail in copying AOT DLLs. --- Editor/BuildProcessors/CopyStrippedAOTAssemblies.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Editor/BuildProcessors/CopyStrippedAOTAssemblies.cs b/Editor/BuildProcessors/CopyStrippedAOTAssemblies.cs index ed938fc..9630316 100644 --- a/Editor/BuildProcessors/CopyStrippedAOTAssemblies.cs +++ b/Editor/BuildProcessors/CopyStrippedAOTAssemblies.cs @@ -47,10 +47,15 @@ namespace HybridCLR.Editor.BuildProcessors #if UNITY_TVOS case BuildTarget.tvOS: #endif + return $"{projectDir}/Library/Bee/artifacts/iOS/ManagedStripped"; #if UNITY_VISIONOS case BuildTarget.VisionOS: +#if UNITY_6000_0_OR_NEWER + return $"{projectDir}/Library/Bee/artifacts/VisionOS/ManagedStripped"; +#else + return $"{projectDir}/Library/Bee/artifacts/iOS/ManagedStripped"; +#endif #endif - return $"{projectDir}/Library/Bee/artifacts/iOS/ManagedStripped"; case BuildTarget.WebGL: return $"{projectDir}/Library/Bee/artifacts/WebGL/ManagedStripped"; case BuildTarget.StandaloneOSX: