'UnityEngine.UI.InputField.ActivateInputField()' is inaccessible due to its protection level.

I’ve made a chat system for my game, but I can’t figure out how to automatically focus on the InputField when I press T to display it. Is this implemented or am I missing something? :slight_smile:

Cheers.

//EDIT
‘UnityEngine.UI.InputField.ActivateInputField()’ is inaccessible due to its protection level.
Anyway around this? Or will I have to wait?

check this thread… How do I control which GUI item has input focus? - Unity Engine - Unity Discussions

1 Like

Well that helps, but I still have to press Enter to make it so I can type in it.
I guess I’ll have to wait until ActivateInputField() is public.
Thanks anyway.

Unless there is a way that I can use BaseEvent’s or something to trigger the InputField listening state. But I have no idea how to use that.

EventSystemManager.currentSystem.SetSelectedGameObject( input.gameObject, (SOMETHING THAT TRIGGERS THE LISTENING STATE));