Unity 5 Button Click C# Tutorial

preview_player
Показать описание
In this Unity 5 scripting tutorial I show you how to call a method of a C# script when a Unity UI Button is clicked.

In the sample project I open and close a door when the button is clicked in the C# handler that is executed.

See my social profiles here
Рекомендации по теме
Комментарии
Автор

Thank you. You totaly helped me out. My project had stuck for a week because coding problem. But you saved me

mustFLEXboi
Автор

thank u.u are the best you help me a lot my project get stuck for 3 days. but i see your vidio and done. its working. thanks bud

mfinn
Автор

Good day,

I have one question, why does when I duplicate the door object only the original object animates?
Thank you in advance :)

replicacloud
Автор

How i play my animation if my statement is true ?
this is my code thanks for asap respo .
string FromUser = Field.text.ToString ();




for (int a = 0; a < Word.Length; a++) {

if (FromUser.ToLower () == Word [a].ToLower ()) {
TextBox.text = Word [a];
anim.SetBool ("Position", true);

break;
}


}

luckychan
Автор

How about a tutorial where the buttons for operating the door are 3d objects? Like lightswich interaction or such

iSnoreee