Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log {#changes}

### v2.21.0 - ???

- Add option on ACesium3DTileset to disable automatic detection of ASceneCapture2D actors to update the visible area.

### v2.20.0 - 2025-10-01

##### Additions :tada:
Expand Down
12 changes: 7 additions & 5 deletions Source/CesiumRuntime/Private/Cesium3DTileset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1289,11 +1289,13 @@ std::vector<FCesiumCamera> ACesium3DTileset::GetCameras() const {
TRACE_CPUPROFILER_EVENT_SCOPE(Cesium::CollectCameras)
std::vector<FCesiumCamera> cameras = this->GetPlayerCameras();

std::vector<FCesiumCamera> sceneCaptures = this->GetSceneCaptures();
cameras.insert(
cameras.end(),
std::make_move_iterator(sceneCaptures.begin()),
std::make_move_iterator(sceneCaptures.end()));
if (AutoDetectSceneCaptureActors) {
std::vector<FCesiumCamera> sceneCaptures = this->GetSceneCaptures();
cameras.insert(
cameras.end(),
std::make_move_iterator(sceneCaptures.begin()),
std::make_move_iterator(sceneCaptures.end()));
}

#if WITH_EDITOR
std::vector<FCesiumCamera> editorCameras = this->GetEditorCameras();
Expand Down
7 changes: 7 additions & 0 deletions Source/CesiumRuntime/Public/Cesium3DTileset.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,13 @@ class CESIUMRUNTIME_API ACesium3DTileset : public AActor {
UFUNCTION(BlueprintSetter, Category = "Cesium")
void SetCameraManager(TSoftObjectPtr<ACesiumCameraManager> NewCameraManager);

/**
* Whether or not to automatically detect and use all ASceneCapture2D actors
* in the scene to update the tileset visible area.
*/
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
bool AutoDetectSceneCaptureActors = true;

/**
* Resolves the Cesium Camera Manager to use with this Actor. Returns
* the value of the CameraManager property if it is set. Otherwise, finds a
Expand Down