ValveSoftware / unity-xr-plugin

OpenVR plugin for Unity's XR API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenVRSettingsCopier does not remove spaces from buildName

kfird214 opened this issue · comments

commented

When trying to build on a project where the Project name has space in it.

When building unity removes the spaces from the data folder.
So the OpenVRSettings.asset would be copied to the wrong folder.

Cause similar error to ValveSoftware/steamvr_unity_plugin#713

string buildName = buildPath.Name.Replace(buildPath.Extension, "");

Probably can just change to

            string buildName = buildPath.Name.Replace(buildPath.Extension, "").Replace(" ", "");
commented

The bug was on the unity side that the build path was wrong for that script.
Updated unity and it was fixed