Rect rightArrowRect = new Rect(Screen.width1/2,0,Screen.width,Screen.height/6);
Rect leftArrowRect = new Rect(0,0,Screen.width1/2,Screen.height/6);
Rect upArrowRect = new Rect(0,Screen.height/6,Screen.width,Screen.height/6);
For my interface, I am naming 3 rectangles as gui buttons. As of now, they are clear. How can I set the rectangle’s color on creation for each element? Everything I have read so far has to do with GUI something or others… Apologies for the lack of details, C# isn’t a code that I’m fairly familiar with.
Bonus: is there a way to set a small texture image to the center of each rect to make them easier to identify?