TLabAltoh / TLabWebView

Plug-in for WebView that runs in Unity and can display WebView results as Texture2D
https://tlabgames.gitbook.io/tlabwebview/
MIT License
4 stars 4 forks source link

is it possible to get values from web? #1

Closed SAKTHIVISHNU25 closed 3 months ago

TLabAltoh commented 10 months ago

Thanks for the question. The function to retrieve the value of the page content is not implemented yet. I'll add a function to capture and retrieve HTML for now.

SAKTHIVISHNU25 commented 10 months ago

I'll add a function to capture and retrieve HTML for now. When will you add this update in git and thanks for your reply

TLabAltoh commented 10 months ago

Retrieval of page source is now supported

Sorry for the late reply The source of the currently displayed page can be obtained from TLabWebView.cs with the following function

void CaptureHTMLSource()
void CaptureElementById(string id)
string CurrentHTMLCaptured()

Specify the element you want to capture with CaptureHTMLSource(), and CaptureElementById(string id), and get the captured element with CurrentHTMLCaptured()

The sample projects in the other repositories do not yet reflect this change, so please clone this repository and update your assets.

If you encounter any problems, don't hesitate to let us know !

SAKTHIVISHNU25 commented 10 months ago

It's working fine. Thanks :-)