Hello Unreal community !
So I’m currently working on a plugin which makes some calculations based on location vectors. For my calculations to be correct, I need the locations to be in meters, when Unreal default units are centimeters. I’ve no problem making it work by converting manually in my code (UnrealLocation*100 or PluginLocation/100), but I recently discovered the measurement units can be changed in the project settings.
I might meet an issue however when it comes to distribution : if a developer using my plugin has set his measurement units to anything else than centimeters, then the calculations will come out wrong.
So here’s my interrogation : is there any way to get a vector to default unit, or at least to get in code which unit is currently set for the measurements ?
Thanks in advance !