Hi! I have a Gui.Textfield that appears when I’m near a door (with raycast). I want write on this field just it appears.
Normally instead we must click on it with mouse. Thanks
Hi! I have a Gui.Textfield that appears when I’m near a door (with raycast). I want write on this field just it appears.
Normally instead we must click on it with mouse. Thanks
Use GUI.FocusControl - there’s an example which you should be able to drag some useful snippets out from: Unity - Scripting API: GUI.FocusControl