Is that possible to make text button like triangle?

  1. What do you want to achieve? Keep it simple and clear!
    So basically i was making a buy menu for my FPS game like in cs go and got a problem, i can’t put a button properly in it bec button UI shape is triangle, but button shape is square

  2. What is the issue? Include screenshots / videos if possible!

  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    Idk didn’t found anything about it

1 Like

You can using ImageButton but it will be complicated aligning a image.

2 Likes

you just nedd to use an image button with the shape of a triangule

2 Likes

Ughh isn’t image button will still be a square even if it is have triangle image??

set the background transparency to 1 and thats it

Uhhmm… Yeah?? When there’s a click event but you can use a Viewport Frame then a mesh part shaped like that then a ClickDetetor. Using Viewports with that would be more accurate as there will be no buttons stealing it’s others clicks.

1 Like

Ohhh thanks a lot now i can finally make that, ty!

no problem, if i help you please mark this as solved

1 Like

Hmmm no this don’t work i made a small script which prints when i click a button, i can click invisible square

The way we do this is we get a imageLabel, create a folder that represents 3 udim2 points of the corners, then we check to see if it is inside with barycentric coordinates. They are very easy to code, look at Calsbeeks answer

also, it might be better to just use one main image and take advantage of the geometric definition of the dot product and just get the angle between the vector between the mouse and the center of the circle to basis vectors (1,0), (0,1)

3 Likes