Skip to content

Instantly share code, notes, and snippets.

@phoenixperry
Created October 8, 2013 18:48
Show Gist options
  • Save phoenixperry/6889578 to your computer and use it in GitHub Desktop.
Save phoenixperry/6889578 to your computer and use it in GitHub Desktop.
unity c# GUI Texture
public Texture2D normalTex;
public Texture2D hoverTex;
void OnMouseEnter () {
guiTexture.texture = hoverTex;
}
void OnMouseExit(){
guiTexture.texture = normalTex;
}
void OnMouseDown(){
Debug.Log("clicked");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment