mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-18 00:54:55 -05:00
Fixed VRMImportExportTests
This commit is contained in:
parent
7a5ff9eb76
commit
d0aecfc630
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user