I want to have a floating exclamation point above a “stall” type thing and when you click on it, it tells you about the mission. Yet, I have no idea about how to script that. Any help or does anyone have a script i can reference to?
Not sure what you mean by ‘stall type thing’, but here’s a few hints:
-
A couple options for the question mark would be to use the GUI system, make it a button, and position it in screen space so that it appears in the right location, or to use the ‘text mesh’ component, make it an actual in-game object, and use raycasting to determine if/when it’s been clicked on.
-
For the ‘mission info’, one or more GUI controls (e.g. Label()) would probably be your best bet.
I’ll offer my usual recommendation, which is to break it down into progressively smaller sub-problems until either you reach something that you can figure out how to solve, or about which you can ask a specific technical question (e.g. ‘I tried the text mesh, but it’s not working because…’).