Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity button text changes when clicked

void OnMouseDown()
{
    GameObject.Find("Button Name").GetComponentInChildren<Text>().text = "Button Text";
}
 
PREVIOUS NEXT
Tagged: #unity #button #text #clicked
ADD COMMENT
Topic
Name
8+6 =