Jump to content

Button3D content


brianzinn
 Share

Recommended Posts

I have been trying to get the Button3D (new in 3.3) to work like the 2D button, but it looks like there are effects from Material or Outline.  I have been unable to disable them - maybe it's part of the utility layer?
https://www.babylonjs-playground.com/#7AR2GJ

I would like a button with the image showing clearly like this 2D one:
https://www.babylonjs-playground.com/#7AR2GJ#1

I'd also like to hide the red coloring.

Link to comment
Share on other sites

This comes down from from the fact that Button3d are mush more like meshes subject to lights and using Standard Materials.

You can then modify and change the material as it best fit to you: https://www.babylonjs-playground.com/#7AR2GJ#2

You can also easily overwrite the default behaviors for hover like this: https://www.babylonjs-playground.com/#7AR2GJ#3

And finaly you can control the scale ratio of your 2d content like this: https://www.babylonjs-playground.com/#7AR2GJ#4

My guess is 3d gui is meant to be much more versatile to fit in 3d space hence the lower level of features.

Hope that helps.

 
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...