Skip to content

Canvas web view example#704

Open
tqtran7 wants to merge 1 commit into
gree:masterfrom
tqtran7:canvasWebview
Open

Canvas web view example#704
tqtran7 wants to merge 1 commit into
gree:masterfrom
tqtran7:canvasWebview

Conversation

@tqtran7

@tqtran7 tqtran7 commented Jun 28, 2021

Copy link
Copy Markdown
  • Replaced onGUI with a canvas example that looks more like a web browser.
  • Added a resize method that will adjust the web view to the canvas.
  • Added unity event handlers so other components can hook into the events.
  • Some additional code cleanup.

@KojiNakamaru

Copy link
Copy Markdown
Member

Thank you for the contribution. Could you please also add a meta file? Without it, CanvasSample.unity cannot refer CanvasWebView.cs (and .gitignore should not have *.meta).

@rk042

rk042 commented Oct 18, 2021

Copy link
Copy Markdown

I try it but it's not rendering, can you please explain it?

@rk042

rk042 commented Oct 18, 2021

Copy link
Copy Markdown
  • Replaced onGUI with a canvas example that looks more like a web browser.
  • Added a resize method that will adjust the web view to the canvas.
  • Added unity event handlers so other components can hook into the events.
  • Some additional code cleanup.

How? I get nothing in my canvas panel.

@KojiNakamaru

Copy link
Copy Markdown
Member

This pull request is incomplete as I discussed before. I fixed it in the following branch:
https://github.com/gree/unity-webview/tree/tqtran7-canvasWebview-with-some-fixes

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

Successfully merging this pull request may close these issues.

3 participants