Fixed VRMImportExportTests

This commit is contained in:
ousttrue 2019-01-09 17:55:39 +09:00
parent 7a5ff9eb76
commit d0aecfc630

View File

@ -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();