mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-26 21:04:14 -05:00
Added errorHandler argument to LoadVrmAsync
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user