mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-12 05:24:14 -05:00
27 lines
638 B
C#
27 lines
638 B
C#
using System.IO;
|
|
using UnityEngine;
|
|
|
|
namespace UniVRM10
|
|
{
|
|
public static class TestAsset
|
|
{
|
|
public static string AliciaPath
|
|
{
|
|
get
|
|
{
|
|
return Path.GetFullPath(Application.dataPath + "/../Tests/Models/Alicia_vrm-0.51/AliciaSolid_vrm-0.51.vrm")
|
|
.Replace("\\", "/");
|
|
}
|
|
}
|
|
|
|
public static Vrm10Instance LoadAlicia()
|
|
{
|
|
var task = Vrm10.LoadPathAsync(AliciaPath, true, true);
|
|
task.Wait();
|
|
var instance = task.Result;
|
|
|
|
return instance.GetComponent<Vrm10Instance>();
|
|
}
|
|
}
|
|
}
|