Projectile.h(50): [C2065] 'UMatineeCameraShake': undeclared identifier

I am trying to follow the tutorial that use UE 4.25 in UE5 but then I use this code:

UPROPERTY(EditAnywhere, Category="combat")
TSubclassOf<UMatineeCameraShake> HitCameraShake;

Projectile.h(50): [C2065] 'UMatineeCameraShake': undeclared identifier

you need to forward declare the UMatineeCameraShake.

TSubclassOf< class UMatineeCameraShake > HitCameraShake;

1 Like

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

Privacy & Terms