Added errorHandler argument to LoadVrmAsync

This commit is contained in:
ousttrue 2018-06-18 22:57:16 +09:00
parent 98193ab756
commit 922f076703

View File

@ -524,9 +524,14 @@ namespace VRM
}
public static void LoadVrmAsync(VRMImporterContext ctx, Action<GameObject> onLoaded)
{
LoadVrmAsync(ctx, onLoaded, Debug.LogError);
}
public static void LoadVrmAsync(VRMImporterContext ctx, Action<GameObject> onLoaded, Action<Exception> onError)
{
LoadVrmAsyncInternal(ctx)
.Subscribe(Scheduler.MainThread, onLoaded, Debug.LogError);
.Subscribe(Scheduler.MainThread, onLoaded, onError);
}
private static Schedulable<GameObject> LoadVrmAsyncInternal(VRMImporterContext ctx)