r/UnityHelp • u/PurpleArbuz • May 27 '26
UNITY I need HELP with Unity and Visual studio!
Помогите,пожалуйста,понять, что не так с кодом. Я не понимаю что не так :( я посмотрела туториал и всë, вроде бы, одинаково написано в этих строчках (27 и 42), но почему-то выдаëт ошибку, хотя в строке 42 вообще просто скобка стоит. И подскажите, пожалуйста, почему у меня не появляется окошко маленькое как в туториале (я на него стрелочкой указала). Чат gpt мне не помог и в комментах под видео ничего нет. Я уже несколько дней мучаюсь с этим:((
Please help me figure out what's wrong with the code. I don't understand what's wrong :( I watched the tutorial, and everything seems to be written the same way in these lines (27 and 42), but for some reason it's giving me an error, even though line 42 just has a parenthesis in it. And please tell me why I don't see the small window like in the tutorial (I pointed to it with an arrow). The GPT chat didn't help me, and there's nothing in the comments under the video



1
u/PayalGames May 27 '26
If you add Debug.log inside Construct function and print dialogsinstaller in debug log. May be it will be null in run time so line 27 will got error.
1
u/Demi180 May 27 '26 edited May 27 '26
You have unsaved changes in your script, indicated with the * next to its name in the tab.
And the “small window” is a field being serialized. You probably made it private instead of public, but we can’t say without pics of that script in your project and in the tutorial.
Side note: if you’re a complete beginner, maybe a dialogue system is a bit complex. You want to be more familiar with Unity and more comfortable programming first.
1
u/masteranimation4 May 27 '26
If you click on the thing you have the script on, there you'll see the scripts it has and there will be empty spaces that you want to drag an object into to "reference" it