Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

unity print name of button when click on it

public void OnClicked(Button button)
 {
     print(button.name);
 }
 //You then have to drag your button containing this script in the script area
Comment

PREVIOUS NEXT
Code Example
Csharp :: rotate object to mouse position unity 
Csharp :: All SQL Server Tables in a Schema 
Csharp :: c# shuffle array 
Csharp :: bubble sort in c# 
Csharp :: c# decimal to hex 
Csharp :: blazor option selected 
Csharp :: data annotation c# name 
Csharp :: tests not showing in test explorer 
Csharp :: bootstrap distane between col 
Csharp :: get waht is differnt between two arrays c# 
Csharp :: lat long data type c# 
Csharp :: get name of project c# .net 
Csharp :: insert new item listview c# 
Csharp :: c# writeline list 
Csharp :: SAVE FLOAT UNITY 
Csharp :: how to map datatable to list in c# 
Csharp :: loop over enum values 
Csharp :: WebClient c# with custom user agent 
Csharp :: memset alternative in c# 
Csharp :: how to change color of a sprite in unity 
Csharp :: convert generic to type c# 
Csharp :: c# cast to type variable 
Csharp :: dictionary c# iterate 
Csharp :: how to print dictionary in c# 
Csharp :: blazor onchange event not firing with inputselect 
Csharp :: c# if statement one line 
Csharp :: forech unity 
Csharp :: unity check if other object is colliding 
Csharp :: string isnullorempty vs isnullorwhitespace 
Csharp :: convert string to int c# 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =