Creating variables for Latitude and Longitude Georeferenced Cesium

I was wondering how to create two variables for the Latitude and Longitude so I can call on it as I move around to get the two at the same time and understand where I am in runtime. Any help would be appreciated.

Hi @DavidHardenatUbihere,

If you add a CesiumGlobeAnchor component to your Actor, it has Longitude, Latitude, and Height properties that are accessible from Blueprints. Or you can use the GetLongitude, GetLatitude, and GetHeight methods from C++.

If you can’t use a globe anchor for some reason, then the CesiumGeoreference has a function TransformUnrealPositionToLongitudeLatitudeHeight that will give you the longitude/latitude/height for any given Unreal world position (note that Longitude is in the X position!). This function is callable from both Blueprints and C++.