specific data type argument

hello people, one of you can me teach the way to pass a specific data type argument in a function
i just know this

void blabla(UObject* obj);

this works but i dont know how pass a specific type like UStaticMeshComponent or whatever. is a noob question here!


Typically like you have done there, standard varioable types dont need pointers but majority of objects will. For example:
void Myfunction(AActor* MyActor, UStaticMeshComponent* MeshComp, UMaterialInterface* Material);

To access the function, variables in your function (inside the .cpp file ) use MyActor->GetName() instead of MyActor.GetName()
VS will autocorrect it for you when typing normally.

Hope this helps