I created new C++ Class “Tank.h” and “Tank.cpp” , I then compiled from Unreal but when I tried to reference the parent class of my blueprint I can not find any Tank reference at all !! where I should look ? or why this class not visible in Unreal Editor ?
Here is the Tank.h file:
#include "CoreMinimal.h"
#include "GameFramework/Pawn.h"
#include "Tank.generated.h"
UCLASS()
class TANKS_API ATank : public APawn
{
GENERATED_BODY()
public:
// Sets default values for this pawn's properties
ATank();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
// Called to bind functionality to input
virtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;
};
I did not know about that “traditional delete” but this solved my problem !! this also mean it is a bug because developer should never do that. Many thanks for your help