
It looks like you're new here. If you want to get involved, click one of these buttons!
a long time ago, i got a script that would make it so that if my player walked through a cube with 'is trigger' turned on then it would make an event happen like the one in the inspector for a button
this image shows how it would hide the mouse upon entering it
i know absolutely nothing anything about coding and i'm trying to make a script that would look like this
basically its this image i photoshopped
first you specify how many different key inputs there will be
then you say what key you want it to be
and then you put in what happens when you press that key
then when you press that key, the thing you put in the event thing would happen
i just need that and my life will become 100x easier thanks
this is what the trigger one looks like btw
Answers
Line 12 before the } press TAB and then it will make the script better i think... im new aswell
its ok someone answered me on reddit https://www.reddit.com/r/unity/comments/kpldj6/keyboard_input_event_code_help/