Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity button text changes when clicked

void OnMouseDown()
{
    GameObject.Find("Button Name").GetComponentInChildren<Text>().text = "Button Text";
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# webbrowser control append 
Csharp :: c# xaml textblock new line 
Csharp :: Razor do while loop 
Csharp :: tuples in c# 
Csharp :: ow-to-return-http-500-from-asp-net-core-rc2-web-api 
Csharp :: entity framework attach 
Csharp :: unity mass unit 
Csharp :: unity recttransform set anchor 
Csharp :: how to play a random sound at the position that you want in unity 
Csharp :: linq pick random element 
Csharp :: vb.net delete a line from text file 
Csharp :: dotnet DB context register 
Csharp :: getcomponent rigidbody2d 
Csharp :: C# listview as listbox 
Csharp :: c# escape quotes 
Csharp :: c# position of character in string 
Csharp :: Insertion sort in c# 
Csharp :: how to find min of an array in c# 
Csharp :: multithreading in .net core 
Csharp :: hydrogen fuels 
Csharp :: How to use multiple Commands for one ViewModel 
Csharp :: unity product.hasreceipt 
Html :: import js in html 
Html :: sweetalert2 cdn 
Html :: html input box no border 
Html :: editable div 
Html :: input file accept image 
Html :: remove underline html 
Html :: html white space on both sides of the page 
Html :: youtube video image 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =