mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-22 10:34:54 -05:00
not Generic
This commit is contained in:
@@ -7,7 +7,7 @@ using UnityEngine;
|
||||
|
||||
namespace VRM.Samples
|
||||
{
|
||||
using Task = Awaitable<Unit>;
|
||||
|
||||
|
||||
public class VRMRuntimeLoader : MonoBehaviour
|
||||
{
|
||||
@@ -165,7 +165,7 @@ namespace VRM.Samples
|
||||
}
|
||||
|
||||
|
||||
async Task LoadAsync(VRMImporterContext context)
|
||||
async Awaitable LoadAsync(VRMImporterContext context)
|
||||
{
|
||||
#if true
|
||||
var now = Time.time;
|
||||
@@ -178,7 +178,6 @@ namespace VRM.Samples
|
||||
// ローカルファイルシステムからロードします
|
||||
VRMImporter.LoadVrmAsync(path, OnLoaded);
|
||||
#endif
|
||||
return new Unit();
|
||||
}
|
||||
|
||||
void LoadBVHClicked()
|
||||
|
||||
@@ -10,7 +10,7 @@ using UnityEngine.UI;
|
||||
|
||||
namespace VRM.Samples
|
||||
{
|
||||
using Task = Awaitable<Unit>;
|
||||
|
||||
|
||||
public class ViewerUI : MonoBehaviour
|
||||
{
|
||||
@@ -87,7 +87,7 @@ namespace VRM.Samples
|
||||
m_textDistributionOther.text = "";
|
||||
}
|
||||
|
||||
public async Task UpdateMetaAsync(VRMImporterContext context)
|
||||
public async Awaitable UpdateMetaAsync(VRMImporterContext context)
|
||||
{
|
||||
var meta = await context.ReadMetaAsync(true);
|
||||
|
||||
@@ -107,10 +107,9 @@ namespace VRM.Samples
|
||||
m_textDistributionOther.text = meta.OtherLicenseUrl;
|
||||
|
||||
m_thumbnail.texture = meta.Thumbnail;
|
||||
|
||||
return new Unit();
|
||||
}
|
||||
}
|
||||
|
||||
[SerializeField]
|
||||
TextFields m_texts = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user