RealDocs

UCameraComponent::GetAdditiveOffset

function Engine Since unknown
#include "Camera/CameraComponent.h"
Access: public Specifiers: const

Description

Retrieves the additive offset and FOV offset currently applied to this camera via AddAdditiveOffset.

Caveats & Gotchas

  • Returns the identity transform and 0.0 FOV offset if no additive offset has been applied, rather than failing or returning an optional.
  • Not UFUNCTION-tagged, so it isn't callable from Blueprint.

Signature

void GetAdditiveOffset(FTransform& OutAdditiveOffset, float& OutAdditiveFOVOffset) const;

Parameters

Name Type Description Default
OutAdditiveOffset FTransform& Receives the currently applied additive offset transform.
OutAdditiveFOVOffset float& Receives the currently applied additive FOV offset in degrees.

Return Type

void

Example

Read the current offset C++
FTransform CurrentOffset;
float CurrentFOVOffset;
CameraComponent->GetAdditiveOffset(CurrentOffset, CurrentFOVOffset);

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.