I guess it’s because the compiler doesn’t know what
AHitscanWeapon
is.
Try
UPROPERTY()
class AHitscanWeapon* WeaponRef;
Yeah, it turns out I just needed to forward-declare it! Thank you so much, this was driving me crazy!
I guess it’s because the compiler doesn’t know what
AHitscanWeapon
is.
Try
UPROPERTY()
class AHitscanWeapon* WeaponRef;
Yeah, it turns out I just needed to forward-declare it! Thank you so much, this was driving me crazy!