After a search, I can’t seem to find an answer to a dilemma I’m having. I’m learning c#, and have gotten to the point that I am coding a clicker/idling game to practice what I’ve learned.
I have multiple buttons, with different classes defining their content by purpose. Each set of buttons have variables attached that update the labels as needed. I’d like to have tooltips for each button that have dynamically assigned content, but I’m stuck on the Rect() part. This is what I’ve come up with:
if (GUI.Button(Rect(//STUCK), "Owned: " + employeeCount + "
LpS: " + tickValue){
//Button stuff here.
}
I have the button stuff figured out, I just can’t seem to figure out if there’s a way to assign the corners, width, and height of the Rect() dynamically so each button shows the correct text.