How to do it (in the description) in Unity2D?


Many times I asked this question here and in Google trying to look in other games and on YouTube, but always there was something...wrong.

How to make:
1. The link on the button - right? Button bt = new Button; and why it's not working
2. How to show+anticiapte/not for example, the game menu? On the background of the picture, the front of the button. GameObject Name; ?
3. How to record variables from input fields and where to record them?

I'm just starting to learn, but it's not really work.

Thank you.
June 14th 19 at 20:44
2 answers
June 14th 19 at 20:46
After taking a course at the office. the website and all questions will disappear.
You have once again answered my questions! I pass, but there is disclosed, for example, "Events" and get "things happen..." and you're done. The objects are there, but about the rest - not so much. And I have enough to get the script to see what and why and all. - Travis_Fisher commented on June 14th 19 at 20:49
OK, here's the script:
public class A:MonoBehaviour{
public Button bt;}

public class A:MonoBehaviour{
public GameObject menu;
void Start(){

3) What is the input field? The variable in the script? UI component? - Alize_Moen commented on June 14th 19 at 20:52
ui component. And thank you, but how to make clicking on a button? bt.OnClick.AddToListner(method);? - Travis_Fisher commented on June 14th 19 at 20:55
June 14th 19 at 20:48
Button button = anygameobject.GetComponent

Find more questions by tags Unity Game EngineC#