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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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
More Pages to Explore .....