Announcement

Collapse
No announcement yet.

Get rotation of camera component of actor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Get rotation of camera component of actor

    How can i get rotation of camera component of actor?
    Thanks in advance.

    #2
    Code:
    // assuming you have a pointer to a camera component UCameraComponent* cameraComponent;
    // get camera info FMinimalViewInfo cameraViewInfo; cameraComponent->GetCameraView(1.0f, cameraViewInfo); FVector cameraLoc = cameraViewInfo.Location; FRotator cameraRot = cameraViewInfo.Rotation;

    Comment

    Working...
    X