I’ve recently attempted to put in a camera shake while my character is walking. Nothing seems to be happening. The code is run but I’m not seeing anything on screen when testing. Any had any similar problems? Nothing is null, and every appears to be in order. I’ve set the camera shake on my character blueprint to the one I created.
if ( playerController && isCameraShakeActive == false )
{
playerController->ClientPlayCameraShake( player.GetCameraShake()->GetClass(), 1.0 );
isCameraShakeActive = true;
}
FORCEINLINE UCameraShake* GetCameraShake() const { return walkCameraShake.GetDefaultObject(); }
UPROPERTY( EditDefaultsOnly, Category = Effects )
TSubclassOf<UCameraShake> walkCameraShake;