Babylon gui 2d Rectangle/button set dashes

How do I make a rectangle or the side of a button a dashed line?
I checked their properties and didn’t find the setting.

     Thanks

Hi Z, welcome to the forum.

I am quite sure that dashed/dotted thickness (border) is not supported.

It CAN be done, with help from 4 “Line Controls”… but it is a LOT of work.

https://www.babylonjs-playground.com/#MWVADV#4

I don’t recommend this. :slight_smile: But perhaps… you could use this method to build a createDashedBorderRectangle(various params) custom function. :open_mouth:

1 Like

https://www.babylonjs-playground.com/#MWVADV#7
like this ??
image

5 Likes

Coooool!

That’s it. I got it.
Thanks

I got it.
Thanks