Question by
adibak · Aug 14, 2021 at 12:06 AM ·
3dinputfield
How to ask for input when user clicks on another gameobject?
Hi,
I want to activate an Input Field when the player clicks on another gameobject. How would I accomplish this?
Comment
Answer by junk_rat_angel · Aug 14, 2021 at 04:38 AM
if the game object has a collider and a script that takes an input : void OnMouseDown() { inputField.SetActive(true); //or inputField.ActivateInputField(); }