mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-13 14:29:38 -05:00
Merge pull request #1643 from ousttrue/fallback_awaitcaller
null だと後続で例外
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user