Merge pull request #1643 from ousttrue/fallback_awaitcaller

null だと後続で例外
This commit is contained in:
ousttrue
2022-05-16 16:52:57 +09:00
committed by GitHub

View File

@@ -22,6 +22,12 @@ namespace VRM
throw new FileNotFoundException(path);
}
if (awaitCaller == null)
{
Debug.LogWarning("VrmUtility.LoadAsync: awaitCaller argument is null. ImmediateCaller is used as the default fallback. When playing, we recommend RuntimeOnlyAwaitCaller.");
awaitCaller = new ImmediateCaller();
}
using (GltfData data = new AutoGltfFileParser(path).Parse())
{
try