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

1 Like

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

4 Likes

Hi, I am curious how you did the steps

/ Add cesium geolocation component to Node
// Assign geolocation

Do you have an example? Would be really nice if you could share