Hi all,
I am developing road traffic and for debugging, I would like to display a list of variables above each car. A sort of 2D display of one sign per car which includes these variables.
How to proceed please?
Hi all,
I am developing road traffic and for debugging, I would like to display a list of variables above each car. A sort of 2D display of one sign per car which includes these variables.
How to proceed please?
Use 3d Widgets. Create the widget and then add a Widget component to your road traffic actor. You will need to make it rotate toward the camera or make it use screen space if you want it to always face the camera.
Draw Debug String
, plug in car as Base Actor
, use text location as local vertical offset. Widgets would work, too, ofc but require more upfront work.
An alternative is to do it in the venerable HUD class, ask it to draw text on a background rectangle.
You could add a text render component and use events to set the text if they are dynamic variables. And you’d want to set the rotation of the text on tick tock ensure it stays facing the camera
Thank you so much for all your answers