|
How do you specify the background color of a GUI.Button - for making a limited button-click color palette, for example.
(comments are locked)
|
|
This is not the most efficient answer - I am really hoping someone can give me a better one!: 1) instead of using guilayer and guibutton, use mesh colliders. raycast to figure out which one was "clicked" 2) material.color tint each one -- the alternative would be to create several solid colors as different materials - does not seem that efficient, especially having to load different textures just for the color 1) use a new texture for each color, and a new guibutton each Have you looked at GUIStyle?
Dec 26 '10 at 11:45 AM
_Petroz
There does not appear to be a background color field in GUIStyle - either that or I"m missing something..
Dec 26 '10 at 11:51 AM
ina
(comments are locked)
|

Amazed no one has answered this yet.. Is the only way to create color palette's to use a different color material each time?