- Home /
Read an item
In my game, I'd like to create a readable item.
So for example; you come across a desk with an envelope on top. You press the "E" key to interact with it (but this only happens if the arrow key is on the envelope). When you press "E", a line of white text appears and you can press the "B" key to go back and the envelope remains on the desk.
Any ideas of how I could do this?
Comment
The simplest way would be to use GUI.
Have a boolean deter$$anonymous$$e whether or not to show that GUI and toggle it with the needed keys (E for true and B for false, in this example).
I would suggest that you check for distance from the player as well if you let them keep control of their character. Walking away from the envelope should make the GUI disappear.
Your answer
![](https://koobas.hobune.stream/wayback/20220613075341im_/https://answers.unity.com/themes/thub/images/avi.jpg)