W
W
wolfak2019-07-01 21:12:36
Android
wolfak, 2019-07-01 21:12:36

Why is InputField not focused in Unity?

Добрый день.
Смотрел кучу уроков в интернете и читал инструкции, но все равно не могу решить свою проблему.
Добавляю InputField внутрь Canvas, форма отлично отображается, но при клике на нее ничего не происходит.
Форма не фокусируется и ввод текста не работает.
Думал что проблема в позиции по Z, но ничего не выходит.
Надеюсь на вашу помощь, спасибо.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gaydak, 2019-07-02
@wolfak

I will copy in response, for someone in the future (especially even the author of the question asked)

and a screenshot of the hierarchy? what will you show in the settings of the input field?
Is there an EventSystem in the scene?
Is the camera displayed in the event canvas? Does the recast chart hang on the canvas itself?
so that it can catch clicks and stuff))
are there just buttons next to it? do they press? (well, that is, make sure that just the click events get on the canvas)

there was also a proposal to make an empty new scene and make a test for "finish"
create simply from the Unity menu, in a new clean scene
GameObject -> UI -> Canvas.
Then on the canvas - UI -> InputField.
Everything, the default example that works exactly - you have it. compare with yours, see what's different.
hope you find it)

and as a result
it was necessary to add EventSystem.
You were right, thanks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question