How can I get the click event ?
Open
Nobody has claimed this yet.
- Dominant language
- Objective-C++
- Stars
- 2.7k
- Forks
- 734
- Avg merge
- 11h 39m
- Merged PRs (30d)
- 1
Description
I would like to hook click event from Unity project.
I wrote following source code but I could not get.
void Start()
{
var go = new GameObject( "WebViewObject" );
webViewObject = (new GameObject("WebViewObject")).AddComponent<WebViewObject>();
webViewObject.Init
(
cb : msg => Debug.LogFormat( "HTML からメッセージを取得しました", msg ),
err : msg => Debug.LogFormat( "エラーが発生しました", msg ),
started : msg => Debug.LogFormat( "ページの読み込みを開始しました", msg ),
ld : msg => Debug.LogFormat( "ページの読み込みが完了しました", msg ),
enableWKWebView : true
);
webViewObject.LoadURL(url);
webViewObject.SetMargins(50, 300, 50, 50);
webViewObject.SetVisibility(true);
}
Please let me know how to hook click event.
Do I need to use Javascript on webpage for getting click event?
Best Regards.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the WebViewObject.Init callback usage shown in the issue and checking how the Unity project communicates with the loaded webpage. Done means identifying a documented, reproducible way to receive a webpage click event in Unity, or clarifying the required JavaScript bridge.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- game-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100