taylormorris Posted April 29, 2016 Share Posted April 29, 2016 Hello, we would like to render our UI on a separate camera and overlay that with our main player camera. How is this possible? The name of Game::setPlayer makes it seem like only one camera is possible but I would expect this is not a difficult problem Link to comment
silent Posted May 4, 2016 Share Posted May 4, 2016 Hi Taylor, It depends on how your UI is made. If it is just a couple of textures - you can just use WidgetSprite to place them on top of the player camera. If it's something more than Textures, you can render it via WidgetSpriteViewport on top of the player camera (you can check the attached sample to have some basic idea). Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts