Jump to content

c++ code to turn info panel to the camera, like was done in the Oil refinery demo


photo

Recommended Posts

Dear all,
I would like to create some "pop-up" screen inside my scene, but to make them effective I need to make them always "facing" / match the camera orientation.
I'm using VR Template, so camera actually can be the HMD or the VR. I see similar behavior in the Oil Refinery Demo, I find the tooltip objects in the demo scene, I try to copy assets and scripts of tolltips, but I can't find the code that take care of change orientation of the panel itself.
Actually my "pop-up" screen will be always on, so I don't need the logic of show/hide based on checklist and progress like the training mode of the demo, I want to turn the panels to make them always clearly visible in VR or 2D.

I'm pretty new on C++ coding in Unigine, so an example of working code it will be really appreciated!

Thanks



 

1.png

2.png

3.png

Edited by andrea.padovani
Link to comment
×
×
  • Create New...