-
-
Notifications
You must be signed in to change notification settings - Fork 170
Description
Hi,
First of all thanks for this component, I've been using it without any problems for my game. I have a feature request. Would it be possible to override the Error.handler function on the UnityLoader object?
As described in this thread:
https://forum.unity.com/threads/make-javascript-errors-not-alert-in-5-6.466772/
I've tried to edit the source in Unity.ts here:
this.unityContent.setUnityInstance(UnityLoader.instantiate(
ReactUnityWebGL${this.props.unityContent.uniqueID}_, this.props.unityContent.buildJsonPath, { onProgress: this.onProgress.bind(this), Module: this.props.unityContent.unityConfig.modules, width: "100%", height: "100%" })); }
But UnityLoader has no Error object here and I have zero experience in TypeScript myself. Would this be hard to implement?
Thanks.