Hello. I am working on a space physics simulator and want to have realistic values for things like planet masses when editing the values in the editor, but the highest mass unit is metric ton, which makes the value extremely big.
Obviously this isn’t a huge issue and I don’t mind working like this but I was wondering if there was a way to add custom units or simply force the editor to add a simple “km/s” string as a suffix.
And to clarify I don’t mean showing those units in the UIi mean in the editor selection.
Video Games are full of smoke & mirrors. When you present the data to the player, add km/s at the end of the string - they will never know. The same goes for distances - no game ever deals with an actual galaxy far, far away. You tell the player the cargo is 12 parsecs away and they must believe it.
But yes, you could (and probably should) write a couple of functions and pipe the engine’s internal data - have the formatted values come out on the other end as you see fit.
If I understand you correctly, you want to display custom units in the editors’ property inspectors. If that’s the case, you can try the ‘Units’ meta specifier as per https://benui.ca/unreal/uproperty/#units.
And to clarify I don’t mean showing those units in the UIi mean in the editor selection.
I was under the impression OP wants the exact opposite. Perhaps I am totally wrong
I was in the same boat initially but after reading the last sentence in the OP, I felt like they meant to say “… I don’t mean showing those units in the (game) UI, I mean in the editor selection”, which would also explain why they posted the image as in “I want to show the units here”.
But I am also not sure if I got it right, hence why I asked whether it’s what they want. Either way, one of our answers should be on point. So as long as one of us helps, it’s A-OK.
Of course, I know this, I’m not trying to simulate the solar system 1:1, I just thought it would be easier if I would just input real units and then let the code handle and scale them, since I’m experimenting right now and I’m not sure yet what scale I want the in game system to be. Mainly because I don’t know what the engine can handle yet. Thanks you for the answer.