So when its just the TSubclassOf getting the AProjectile there isn’t a compiler error and everything runs fine, but when I go ahead and try to spawn with GetWorld()->SpawnActor I get 4 compile errors.
They are:
Severity Code Description File Line
Error - C2027 - use of undefined type ‘AProjectile’ - SubclassOf.h - 55
Error - C3861 - ‘StaticClass’: identifier not found - SubclassOf.h - 55
- Failed to produce item fireBreak.dll - ERROR -
Error - MSB3075 - Verify that you have sufficient rights…- Microsoft… - 44
When I comment out the SpawnActor code, it compiles fine. When I take it out of the //, it fails all over again. Is this a new thing with the 4.18.3 update? Or am I miss-using the SpawnActor?
Just to be clear, I never touched or plan to touch the SubclassOf.h or any of those other files until I have gained much more proficiency in unreal c++ coding.
I have the Projectile.h included.
And I have tried different spawn configurations besides the 2nd one suggested in the tutorial.