Circle Button Layout

Hi, on my current project I have a concept of a list of buttons created in a foreach loop. This will read all elements in an array and create a button and position accordingly. The tricky part is how I wish the buttons to be. Basically I want to have a circle GUI to appear on mousebuttondown(1). This GUI circle will be filled with (“Pie Slices”) buttons that can be highlighted and when the button is released, a action happens. I have the button actions complete, but I am curious if a GUI style should be used or if I can even create such a thing. If anyone can point me in the right direction with this that would be great. I have seen such things in games before but I had no idea how hard it was to do.

You mean, something like this?

It’s very tricky to get the exact mouse-over event on this type of area. You could accomplish this if you handle your own rollover testing (using the mouse position and arc formula). Or you should do it inside the 3D, using meshes having mesh colliders.

Yes, that wheel will appear as a gui, now I have thought of using 3d rendering, but wouldn’t that decrease my frame rate while playing? I was wondering if you could design a button to have the click-able area of one “slice”, (*note all slices will have the same area) and just rotate copies of the buttons around a center point. I guess 3d meshes could be better in creating depth on-screen, but I would rather not sacrifice the frame rate if it ends up too bad. Ill start fiddling around and see what I can get.