Setting Georeference of Actor

I’m trying to use C++ to Spawn an Actor in the world and add a cesium georeference component to it. Also assign it a long, lat, height. I’m not sure how to do this though.

AActor* Node = GetWorld()->SpawnActor(AActor::StaticClass(), Location, Rotation, SpawnInfo);
// Add cesium geolocation component to Node
// Assign geolocation
// Spawn Node in World

If anyone is curious i was able to accomplish my goal using this blogpost.

2 Likes