Get Actor Rotation and Break Rotations in C++

Howdy, I am trying to get the values of an actor’s current rotation. I know I can dump GetActorRotation() into a FRotator but I don’t know how to get a single value out of that. For example, in BP I would split the struct pin or pass it to a break rotator. Would the equivelent be something like:

FRotator MyPitchRotation = GetActorRotation().UnitAxis(EAxis::Y); ?

Sorry, I’m a bit rusty and everything is new. Thanks.


GetActorRotation().Yaw
GetActorRotation().Pitch
GetActorRotation().Roll

Very helpful, thank you.