Ui, tlačidiel v jednote

Príklady kódu

0
0

jednota ui tlačidlo

using UnityEngine.UI;

public class ButtonScript : MonoBehaviour
{
	public Button btn;

	void Awake()
    {
		btn.onClick.AddListener(btnClicked);
	}

	void btnClicked()
    {
		Debug.Log("Button clicked");
	}
}

Podobné stránky

Podobné stránky s príkladmi

V iných jazykoch

Táto stránka je v iných jazykoch

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................