Quantcast
Channel: Answers for "GUI.Button Texture Swap?"
Browsing all 6 articles
Browse latest View live

Answer by ThumbStorm

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 itvar Texture1 : Texture; var Texutre2 :...

View Article



Answer by siberman

I think this is a more elegant solution. If you set a bool with the button you can use it to determine the texture in line, e.g. if( GUI.Button( myRect, myBool ? texture1:texture2 ) ) { myBool =...

View Article

Answer by DarkSlash

I have the same problem on this post http://answers.unity3d.com/questions/710962/change-guibutton-texture-on-runtime.html but the texture is not changing! I also tried to apply the elegant solution but...

View Article

Answer by ThumbStorm

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 itvar Texture1 : Texture; var Texutre2 :...

View Article

Answer by siberman

I think this is a more elegant solution. If you set a bool with the button you can use it to determine the texture in line, e.g. if( GUI.Button( myRect, myBool ? texture1:texture2 ) ) { myBool =...

View Article


Answer by DarkSlash

I have the same problem on this post http://answers.unity3d.com/questions/710962/change-guibutton-texture-on-runtime.html but the texture is not changing! I also tried to apply the elegant solution but...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images