You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//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.
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
The text was updated successfully, but these errors were encountered: