samcrowleymusic Posted April 7, 2018 Share Posted April 7, 2018 Hey there, I'm trying to render a hotbar to the screen but it follows the camera and moves along as the camera moves. I want it to stay still on the screen and be separate from the world's physics and camera's positions. What's the best way to do this? Link to comment Share on other sites More sharing options...
samid737 Posted April 7, 2018 Share Posted April 7, 2018 You can use setScrollFactor, which is probably the best way if you're looking for fixed positioning. If you need more fine tuned UI (fixed rotation, zoom), you can use multiple cameras. Tell one camera to ignore the world objects, tell the main camera to ignore the UI objects ( hotbar etc.). Another way is using UI scenes, one solely for UI and one for the game world. Link to comment Share on other sites More sharing options...
Recommended Posts