There’s no API-level support for this currently, but you can take a look at the implementation we use to focus on a tileset when the user double-clicks it in the Editor. Something similar should be doable in your case.
this->_captureMovieMode = false;
this->PreloadAncestors = this->_beforeMoviePreloadAncestors;
this->PreloadSiblings = this->_beforeMoviePreloadSiblings;
this->LoadingDescendantLimit = this->_beforeMovieLoadingDescendantLimit;
this->UseLodTransitions = this->_beforeMovieUseLodTransitions;
}
void ACesium3DTileset::PauseMovieSequencer() { this->StopMovieSequencer(); }
#if WITH_EDITOR
void ACesium3DTileset::OnFocusEditorViewportOnThis() {
UE_LOG(
LogCesium,
Verbose,
TEXT("Called OnFocusEditorViewportOnThis on actor %s"),
*this->GetName());
struct CalculateECEFCameraPosition {
glm::dvec3 operator()(const CesiumGeometry::BoundingSphere& sphere) {
const glm::dvec3& center = sphere.getCenter();