AddDynamic Error

.cpp file is on the left and .h is on the right

Just trying to create a projectile and was following a tutorial, I created a new c++ class called Bullet_Projectile, howether at the last part im getting an error at the AddDynamic line 38 on the cpp file, the error it gives me says “No instance of function template matches the argument list”, im not sure what that means. The purpose of the line is to connect it underneath.

Why UPrimaryDataAsset* as the third argument? It requires UPrimitiveComponent*.

1 Like

For some reason the tutorial uses UPrimaryDataAsset, I replaced it with UPrimitiveComponent and it works, Thanks for the help!