I am new to UE4, so sorry if my question is stupid. I have C++ class that must spawn actor(C++ class with blueprint based on it) in front of character. The problem is that actor spawn in location setted in blueprint. C++ class has only pointer to mesh and float variable, blueprint has only mesh.
Code that spawns actor:
FVector FrVector = Cam->GetForwardVector();
FActorSpawnParameters spawnParams;
AActor* SpawnedBullet = GetWorld()->SpawnActor<AActor>(BulletClass->GetDefaultObject()->GetClass(), FrVector, FRotator(0,0,0),spawnParams);
BulletClass declaration:
UPROPERTY( EditAnywhere, BlueprintReadWrite, Category = "Bullet") TSubclassOf BulletClass;
Blueprint based on c++ class i want to spawn: