From d0aecfc6309bab9fb93574e7a46670fb2c7e175e Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 9 Jan 2019 17:55:39 +0900 Subject: [PATCH] Fixed VRMImportExportTests --- .../Editor/Tests/VRMImportExportTests.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/Assets/VRM.Samples/Editor/Tests/VRMImportExportTests.cs b/Assets/VRM.Samples/Editor/Tests/VRMImportExportTests.cs index a1f4670e1..fd910333e 100644 --- a/Assets/VRM.Samples/Editor/Tests/VRMImportExportTests.cs +++ b/Assets/VRM.Samples/Editor/Tests/VRMImportExportTests.cs @@ -20,10 +20,19 @@ namespace VRM.Samples public class VRMImportExportTests { + static string AliciaPath + { + get + { + return Path.GetFullPath(Application.dataPath + "/../Tests/Models/Alicia_vrm-0.40/AliciaSolid_vrm-0.40.vrm") + .Replace("\\", "/"); + } + } + [Test] public void ImportExportTest() { - var path = Application.streamingAssetsPath + "/VRM.Samples/Models/Alicia_vrm-0.40/AliciaSolid_vrm-0.40.vrm"; + var path = AliciaPath; var context = new VRMImporterContext(); context.ParseGlb(File.ReadAllBytes(path)); context.Load(); @@ -88,7 +97,7 @@ namespace VRM.Samples [Test] public void MeshCopyTest() { - var path = Application.streamingAssetsPath + "/VRM.Samples/Models/Alicia_vrm-0.40/AliciaSolid_vrm-0.40.vrm"; + var path = AliciaPath; var context = new VRMImporterContext(); context.ParseGlb(File.ReadAllBytes(path)); context.Load();