- Home /
Question by
unity_YgpIvabNS0N9pQ · Oct 02, 2018 at 01:39 PM ·
scripting problem
How to create a script that displays a text box when the user collects an item?,How to create a script that displays a text box when the user collects an object?
Hello. I have an object called HydrogenTank in my game. I want Unity to display a text box whenever the fps controller(self made one, not the one from Standard Assets) walks over the object and collects it. I can get the object to be collected(being disabled in the hierarchy and counted in a separate script), but I have no clue how to make a text box appear(I want the text to state facts about hydrogen when the item is collected). If anyone can show me how to do this, it will be greatly appreciated.
Thanks and have a nice day.
Comment
Answer by tormentoarmagedoom · Oct 02, 2018 at 01:50 PM
Good day. I see you still neednsome basic knowledge... you should look tutorials about
Canvas
Canvas set as world space
UI text
Bye!