|
Is there an way to use the on press functionality of a GUI.Button to change the texture assigned to it. Something to the effect of,
(comments are locked)
|
|
first make a main texture "textureButton" then assign that texture " Texture1" in the awake function. Use the 3rd texture "Texture2" when you want to swap it var Texture1 : Texture; var Texutre2 : Texture; var TextureButton: Texture; function Awake() { TextureButton = Texture1; } void OnGUI() {
(comments are locked)
|
