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

Does_babylon.gui.image, url or path input works? #10626

Closed
xwaeaewcrhomesysplug opened this issue Jul 4, 2021 · 2 comments
Closed

Does_babylon.gui.image, url or path input works? #10626

xwaeaewcrhomesysplug opened this issue Jul 4, 2021 · 2 comments

Comments

@xwaeaewcrhomesysplug
Copy link

I checked https://forum.babylonjs.com/search?q=image%20button
Found,https://forum.babylonjs.com/t/button-image-examples-not-working/16281
states that it worked in the past..however it does not seems to work now.

i used a few references

//https://playground.babylonjs.com/#XCPP9Y#3
//https://doc.babylonjs.com/divingDeeper/gui/gui
however none of it seems to work.
What I need is just a image that acts like a button.
Which you probably will ask did the example in docs worked.sadly no.
in fact,i do not think the example even work.I copied the code and change the string to point to my image.
it sadly does not seems to work.

you may use https://playground.babylonjs.com/#XCPP9Y#3 and replace the var button contructor with the image link to test.
you may also try comment out the button.background and button.color
eg,"textures/grass.png" to "https://avatars.discourse-cdn.com/v4/letter/j/e68b1a/240.png"

Expected result,a picture that acts like a button.
current result,a transparent button that works

@xwaeaewcrhomesysplug
Copy link
Author

debugweg2
debugweg

eg

@sebavan
Copy link
Member

sebavan commented Jul 5, 2021

As the template is mentioning it would be great to start the discussion in the Babylon forum as we tend to keep Github for validated issues.

In your case it seems to be a cors issue for your picture
image

@sebavan sebavan closed this as completed Jul 5, 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