File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
src/Packages/Passport/Runtime/Scripts Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1818using System . Runtime . InteropServices ;
1919#endif
2020
21- #if ! IMMUTABLE_CUSTOM_BROWSER && UNITY_STANDALONE_WIN
21+ #if ! IMMUTABLE_CUSTOM_BROWSER && ( UNITY_STANDALONE_WIN || ( UNITY_EDITOR && UNITY_EDITOR_WIN ) )
2222using VoltstroStudios . UnityWebBrowser ;
2323using VoltstroStudios . UnityWebBrowser . Core ;
2424using VoltstroStudios . UnityWebBrowser . Core . Engines ;
3232
3333namespace Immutable . Passport
3434{
35- #if ! IMMUTABLE_CUSTOM_BROWSER && UNITY_STANDALONE_WIN
35+ #if ! IMMUTABLE_CUSTOM_BROWSER && ( UNITY_STANDALONE_WIN || ( UNITY_EDITOR && UNITY_EDITOR_WIN ) )
3636 /// <summary>
3737 /// Windows implementation of IPassportWebView using Volt Unity Web Browser (UWB)
3838 /// Wraps all UWB-specific functionality in a clean, platform-agnostic interface
Original file line number Diff line number Diff line change @@ -194,17 +194,15 @@ private void CreateWebView()
194194 /// </summary>
195195 private IPassportWebView CreatePlatformWebView ( )
196196 {
197- #if ! IMMUTABLE_CUSTOM_BROWSER && UNITY_STANDALONE_WIN
197+ #if ! IMMUTABLE_CUSTOM_BROWSER && ( UNITY_STANDALONE_WIN || ( UNITY_EDITOR && UNITY_EDITOR_WIN ) )
198198 PassportLogger . Info ( $ "{ TAG } Creating Windows WebView (UWB)") ;
199199 return new WindowsPassportWebView ( rawImage , this ) ;
200200#elif UNITY_IOS && ! UNITY_EDITOR
201201 PassportLogger . Info ( $ "{ TAG } Creating iOS WebView (WKWebView)") ;
202- // TODO: Implement iOS WebView
203- throw new NotImplementedException ( "iOS WebView not yet implemented" ) ;
202+ return new iOSPassportWebView ( rawImage , this ) ;
204203#elif UNITY_ANDROID && ! UNITY_EDITOR
205204 PassportLogger . Info ( $ "{ TAG } Creating Android WebView") ;
206- // TODO: Implement Android WebView
207- throw new NotImplementedException ( "Android WebView not yet implemented" ) ;
205+ return new AndroidPassportWebView ( rawImage , this ) ;
208206#elif UNITY_STANDALONE_OSX
209207 PassportLogger . Info ( $ "{ TAG } Creating macOS WebView (WKWebView)") ;
210208 // TODO: Implement macOS WebView
You can’t perform that action at this time.
0 commit comments