Horje
unity button press onclick click add C# Code Example
unity button press onclick click add C#
using UnityEngine;
using UnityEngine.UI;

public class Example : MonoBehaviour
{
	[SerializeField]
    private Button button;
    
    void Start()
    {
    	button.onClick.AddListener(RunThisTask);
    }
    
    void RunThisTask(){
    	//do something
    }
}




Csharp

Related
how to do if statement based on date in asp net c# Code Example how to do if statement based on date in asp net c# Code Example
C# create delegate type at runtime Code Example C# create delegate type at runtime Code Example
string.QueryString c# Code Example string.QueryString c# Code Example
unity can't rename 2d character Code Example unity can't rename 2d character Code Example
unity slider decimal 0.01 Code Example unity slider decimal 0.01 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7