UMatineeCameraShake Issue during compile

Can’t Compile The camera shake in unreal 4.27.1.Getting this error:
error C2664: ‘void APlayerController::ClientStartCameraShake(TSubclassOf,float,ECameraShakePlaySpace,FRotator)’: cannot convert argument 1 from ‘TSubclassOf’ to ‘TSubclassOf’

UPROPERTY(EditAnywhere, Category = "Combat")
		TSubclassOf<class UMatineeCameraShake> HitCameraShakeClass;
if (HitCameraShakeClass) {
			//ClientStartCameraShake()
			GetWorld()->GetFirstPlayerController()->ClientStartCameraShake(HitCameraShakeClass);
			//GetWorld()->GetFirstPlayerController()->PlayerCameraManager->StartCameraShake(HitCameraShakeClass);
		}

Any Idea How to solve this issue?

Change this

TSubclassOf<class UMatineeCameraShake> HitCameraShakeClass;

to

TSubclassOf<class UCameraShakeBase> HitCameraShakeClass;
2 Likes

Thank you.I will try and let you know.
Edit: Manage to complie successfully

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms