class UCapsuleComponent;
UCLASS()
class TOONTANKS_API APawnBase : public APawn
{
GENERATED_BODY()
private:
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Components", meta=(AllowPrivateAccess = "true"))
UCapsuleComponent* CapsuleComp;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Components", meta=(AllowPrivateAccess = "true"))
UStaticMeshComponent* BaseMesh;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Components", meta=(AllowPrivateAccess = "true"))
UStaticMeshComponent* TurretMesh;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category="Components", meta=(AllowPrivateAccess = "true"))
USceneComponent* ProjectileSpawnPoint;
public:
// Sets default values for this pawn's properties
APawnBase();
};
In PawnBase.h, we have UCapsuleComponent and UStaticMeshComponent and USceneComponent, I wonder why we only have UCapsuleComponent class in the forward declaration, and no need to declare for the other two class?
Thanks in advance!