UCameraComponent::ProjectionMode
#include "Camera/CameraComponent.h"
Access: public
Specifiers: UPROPERTYInterpEditAnywhereBlueprintReadWrite
Description
Controls whether this camera renders using perspective (standard 3D) or orthographic projection.
Caveats & Gotchas
- • Switching to orthographic ignores FieldOfView entirely and uses OrthoWidth instead to determine the view extents.
- • Marked Interp, so it can be keyframed directly in Sequencer/Matinee without going through a dedicated track type.
Signature
UPROPERTY(Interp, EditAnywhere, BlueprintReadWrite, Category = CameraSettings)
TEnumAsByte<ECameraProjectionMode::Type> ProjectionMode; Example
Switch to orthographic C++
CameraComponent->ProjectionMode = ECameraProjectionMode::Orthographic;
CameraComponent->OrthoWidth = 1024.0f; See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?