As part of the space game I’m working on, I’m trying to create a diegetic HUD for the player while they’re in the cockpit of the ship. Rather than have the HUD information render to the screen, I’d like to render it to the cockpit model, so it looks like the MFDs (multi-function displays) on the control console are displaying the information on their screens. I also want the information to update in real-time, to reflect things like the ship’s current speed, heading, fuel, hull integrity, etc. So far, I’ve gotten a very basic mock-up put together where I added a widget component to my player pawn (which also contains the static mesh component for the cockpit) and made the widget display some text, and positioned said widget over one of the MFDs of the cockpit model.
That isn’t a very elegant solution, in my opinion, but I haven’t found a better way to do it, yet. Ideally, I’d like to be able to create a material or texture that displays HUD info, and apply it directly to the cockpit model so it covers an MFD, but I’m not sure what steps to take to do that, or if it would be able to produce the result I want.
If anyone could share some insight on how to best set up a diegetic HUD like the one I’m describing, that’d be great.