Hi,
I am a beginner for Unity. I want to change my GUI.Button size when player press on Button
Can I change it to the bigger size. ?
This is my code
private Rect smallBtnRect = new Rect(10,10,30.30);
private Rect bigBtnRect = new Rect(10,10,50,50);
void OnGUI (){
Rect btnRect = smallBtnRect;
if ( GUI.Button(btnRect, "Click") ){
// Can I change btnRect to bigBtnRect here ?
}
}
Thank you for solution.