Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webview content is slightly blured comparative to actual web browser like chrome/safari #1068

Open
yogi-chaturvedi opened this issue Apr 16, 2024 · 1 comment

Comments

@yogi-chaturvedi
Copy link

yogi-chaturvedi commented Apr 16, 2024

I successfully executed the code on macOS. However, I encountered an issue where the content within the webview appeared blurry, akin to viewing it in an actual web browser. I've attached a screenshot for reference. @KojiNakamaru, could you please investigate whether this is a limitation of the library or if there's a way to achieve clearer content?

Using unity-webview
Screenshot 2024-04-16 at 10 34 23 PM

Actual web browser -
Screenshot 2024-04-16 at 10 35 39 PM

@KojiNakamaru
Copy link
Member

I introduced devicePixelRatio in #1069 . If you enable "Mac Retina Support" in Player Settings and set webViewObject.devicePixelRatio = 2, a webview is rendered in retina resolution (though it degrades the performance a lot).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants