Fixed QuestManifest generation
This commit is contained in:
parent
f447b2b301
commit
cfc3b22c00
@ -219,7 +219,7 @@ namespace Passer.Humanoid {
|
||||
for (int i = 0; i < hcScripts.Length; i++) {
|
||||
string assetPath = AssetDatabase.GUIDToAssetPath(hcScripts[i]);
|
||||
if (assetPath.Length > 36 && assetPath.Substring(assetPath.Length - 27, 27) == "/Scripts/HumanoidControl.cs") {
|
||||
humanoidPath = assetPath.Substring(6, assetPath.Length - 24);
|
||||
humanoidPath = assetPath.Substring(0, assetPath.Length - 18);
|
||||
return humanoidPath;
|
||||
}
|
||||
}
|
||||
|
@ -71,7 +71,9 @@ namespace Passer.Humanoid {
|
||||
return;
|
||||
|
||||
string humanoidPath = Configuration_Editor.FindHumanoidFolder();
|
||||
string questManifestPath = Application.dataPath + humanoidPath + "Extensions/Oculus/QuestManifest.xml";
|
||||
string questManifestPath = Application.dataPath.Substring(0, Application.dataPath.Length - 6) + // remove /Assets
|
||||
humanoidPath + "Extensions/Oculus/QuestManifest.xml";
|
||||
Debug.Log(questManifestPath);
|
||||
File.Copy(questManifestPath, manifestPath);
|
||||
}
|
||||
catch (System.Exception _) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user