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

How can ı add this into a cube or canvas ı want? #682

Closed
pbgame55 opened this issue Apr 28, 2021 · 4 comments
Closed

How can ı add this into a cube or canvas ı want? #682

pbgame55 opened this issue Apr 28, 2021 · 4 comments

Comments

@pbgame55
Copy link

Can I transfer the webview from the plugin onto a cube?

@KojiNakamaru
Copy link
Member

Unfortunately no. Please check #658 (comment) .

@pbgame55
Copy link
Author

Thank you, since I am not professional on this subject, I want to ask another question, there is one picture on the canvas, and the dimensions of the picture are: posx 16, posy 66, width 280, height 157. And I want the webview screen to have these dimensions too.
webViewObject.SetMargins (16,66,280,157); When I write this way, the webview image does not have the size of the picture, what am I doing wrong, how should I place these values?
#567 this is not possible for me. Thank you again.

@KojiNakamaru
Copy link
Member

The argments of SetMargins() are margins from left/top/right/bottom screen edges, so in your case the following should work:

    webViewObject.SetMargins(16, 66, Screen.width - (16 + 280), Screen.height - (66 + 157));

@pbgame55
Copy link
Author

pbgame55 commented May 2, 2021

Thank you for your attention and for this nice plugin problem solved.

@pbgame55 pbgame55 closed this as completed May 2, 2021
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