unity-azure-pipelines-tasks icon indicating copy to clipboard operation
unity-azure-pipelines-tasks copied to clipboard

SteamingAssets is not the same as Unity Editor build

Open eusebiu opened this issue 2 years ago • 1 comments

In a VR project (SteamVR with MRTK) with XR pipeline enabled, the StreamingAssets folder does not contain the same files as the one build by Unity Editor - i.e. the OpenVRSettings.asset file is missing in StreamingAssets/SteamVR - this is not in project's StreamingAssets/SteamVR folder but I think it is copied from Assets/XR/Settings by the Editor build.

Task version: 2.* Unity 2021.1.21

Demo project: https://1drv.ms/u/s!Aq1jgNgVNaunk3bg8TfmGd9jnkcS?e=mhqhqH

eusebiu avatar Oct 11 '21 11:10 eusebiu

I see this in the Editor when I build - maybe it helps: Copied openvr settings to build directory: C:\New Unity Project\BuildDesktop\New Unity Project_Data\StreamingAssets\SteamVR\OpenVRSettings.asset UnityEngine.Debug:Log (object) Unity.XR.OpenVR.Editor.OpenVRSettingsCopier:OnPostprocessBuild (UnityEditor.BuildTarget,string) (at Library/PackageCache/com.valvesoftware.unity.openvr@11963264469d-1624042178482/Editor/OpenVRSettingsCopier.cs:110) UnityEditor.BuildPipeline:BuildPlayer (UnityEditor.BuildPlayerOptions) BuildWin64:PerformBuild () (at Assets/Oculus/BuildWin64.cs:11)

eusebiu avatar Oct 12 '21 18:10 eusebiu

Hello and first of all I am sorry for leaving you hanging with this for years literally. Unfortunately this does not seem to be an issue with the build tasks itself. They simply trigger a build process. I'd suspect the issue to be within the BuildWin64.PerformBuild script and how it handles being executed in batchmode.

FejZa avatar Mar 24 '23 10:03 FejZa