How would I go about writing a script to where when I right click on an “Item” or GameObject, a small menu appears with click-able text or textButtons. For example theres a monster walking around, when my mouse hovers over it and I “Right Click” a menu box pops up in that position saying maybe 3 options as in, “Attack”, “Examine”, or “Nothing”. or when an item is on the ground and I right click on it, a couple options such as, "Pick Up, “Examine”, “Nothing”.
Well I’m not going to write the code for u but this is how I would go about it.
Get a script that makes the menu like you want
Get a raycast mouse hit script