Is there a way to make custom button shapes ? meaning I know you can make a guiStyle and throw a texture into it but it still a box . Like can I make a star ? and the hit only read in the star section?
There is no direct way to do this kind of thing with the GUI system. You may be able to simulate it by using GUI.DrawTexture to draw the image of the button and checking for clicks inside its rectangle using Rect.Contains:-
var buttonRect: Rect;
GUI.DrawTexture(buttonRect, buttonImage);
...
if (buttonRect.Contains(Input.mousePosition)) {
// Mouse might be on the button.
}
After establishing that the mouse is in the bounding rectangle, you will need to do additional testing for the irregular shape of the button. Exactly how you do this will depend on how the button looks and behaves. You may, for example, be able to check the texture for its colour at the mouse position (ie, alpha will be zero in the transparent areas).