We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 81fcaf2 + b958da0 commit 41ad9a2Copy full SHA for 41ad9a2
src/Packages/Passport/Runtime/Scripts/Public/Passport.cs
@@ -190,8 +190,8 @@ private async UniTask Initialise(
190
throw new PassportException("When 'IMMUTABLE_CUSTOM_BROWSER' is defined in Scripting Define Symbols, " +
191
" 'windowsWebBrowserClient' must not be null.");
192
#else
193
- this.webBrowserClient = new UwbWebView();
194
- await ((UwbWebView)this.webBrowserClient).Init(engineStartupTimeoutMs);
+ webBrowserClient = gameObject.AddComponent<UwbWebView>();
+ await ((UwbWebView)webBrowserClient).Init(engineStartupTimeoutMs);
195
readySignalReceived = true;
196
#endif
197
}
0 commit comments