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

Unity Feature Request: expose AddScriptToExecuteOnDocumentCreatedAsync #197

Open
ptc-ccrabb opened this issue Jun 14, 2023 · 2 comments
Open
Labels

Comments

@ptc-ccrabb
Copy link

I would like the ability to inject new globals into webpages I load into the WebView. It appears that CoreWebView2 has such an API at the C++ level: AddScriptToExecuteOnDocumentCreatedAsync. It would be nice if this method were somehow exposed at the C# level in Unity.

@champnic
Copy link
Member

champnic commented Jul 5, 2023

@michaelfarnsworth @SamiraAtMicrosoft @JordanMandel Does the Unity WebView2 expose the underlying CoreWebView2? I wasn't able to find it if it does. We expose that as a property on the other controls like .NET, so I think it might make sense on the Unity control as well if possible.

@michaelfarnsworth
Copy link
Collaborator

@champnic we don't currently expose the underlying WebView2 control via the C#, but we've discussed it. I'll revive the topic with the team and see if we can make a plan for this.

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

No branches or pull requests

3 participants