not Generic

This commit is contained in:
ousttrue
2021-02-19 16:23:57 +09:00
parent fa712fc1d4
commit 6914df7de0
10 changed files with 180 additions and 60 deletions

View File

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

View File

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