I noticed that the generated XxxCharacter.cpp code makes lots of calls to GetCharacterMovement(), such as:
GetCharacterMovement()->JumpZVelocity = 700.f;
GetCharacterMovement()->AirControl = 0.35f;
GetCharacterMovement()->MaxWalkSpeed = 500.f;
but GetCharacterMovement() is just doing this:
FORCEINLINE_DEBUGGABLE T* GetCharacterMovement() const
{
return CastChecked<T>(CharacterMovement, ECastCheckedType::NullAllowed);
}
FORCEINLINE UCharacterMovementComponent* GetCharacterMovement() const { return CharacterMovement; }
Am I correct in assuming the FORCEINLINE_DEBUGGABLE version is why it doesn’t simply reference CharacterMovement directly?