- Home /
Read objects like in Penumbra
Hi, I'm new to coding and I dont know how to make a script like in penumbra when you right click on a object, a text appears about the object.
untitled.png
(197.8 kB)
Comment
Answer by tanoshimi · Jul 13, 2016 at 07:18 PM
You use the Input class to listen for a mouse click.
Then you perform a Raycast to determine the object on which the cursor was clicked.
Then you create a UI text object positioned on a world space canvas above the object.
These are all basic topics covered in the manual and in the Learn section of tis site.