# I can not find my C++ Class in Unreal

**URL:** <https://forums.unrealengine.com/t/i-can-not-find-my-c-class-in-unreal/448970>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 14, 2019, 4:55pm UTC](https://forums.unrealengine.com/t/i-can-not-find-my-c-class-in-unreal/448970 "2019-05-14T16:55:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_6c1df161](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6c1df161](https://forums.unrealengine.com/u/anonymous_user_6c1df161)\
**Post date:** [May 14, 2019, 4:55pm UTC](https://forums.unrealengine.com/t/i-can-not-find-my-c-class-in-unreal/448970/1 "2019-05-14T16:55:08Z")

</div>

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;

};

```

 ![276853-untitled.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/4/654fb0e1101fcf48771ea34ba19aa9f367ab7320.jpeg)

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [May 14, 2019, 7:14pm UTC](https://forums.unrealengine.com/t/i-can-not-find-my-c-class-in-unreal/448970/2 "2019-05-14T19:14:30Z")

</div>

what did you set as UCLASS() values  
did you inherit from AActor or some other class like that?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6c1df161](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6c1df161](https://forums.unrealengine.com/u/anonymous_user_6c1df161)\
**Post date:** [May 14, 2019, 7:27pm UTC](https://forums.unrealengine.com/t/i-can-not-find-my-c-class-in-unreal/448970/3 "2019-05-14T19:27:15Z")

</div>

I added the code, what do you think ?

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [May 14, 2019, 7:34pm UTC](https://forums.unrealengine.com/t/i-can-not-find-my-c-class-in-unreal/448970/4 "2019-05-14T19:34:23Z")

</div>

hmn just tried your code and I have no problems finding your class.

- Just create a new blueprint
- Input Tank in the text input field below class (1)
- Select your class as a parent (2)

 ![276840-createbluprint.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/3/9/839a045d4614ecde64dfe7824d8c4c52d499f90c.png)

 ![276851-selectcustomclass.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/6/586fe15dcbdc4d51135feac186e25b75bb3f65d2.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6c1df161](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6c1df161](https://forums.unrealengine.com/u/anonymous_user_6c1df161)\
**Post date:** [May 14, 2019, 7:51pm UTC](https://forums.unrealengine.com/t/i-can-not-find-my-c-class-in-unreal/448970/5 "2019-05-14T19:51:40Z")

</div>

see my picture above , no tank class !!! I use UE 4.21 is it a bug ?

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [May 14, 2019, 7:54pm UTC](https://forums.unrealengine.com/t/i-can-not-find-my-c-class-in-unreal/448970/6 "2019-05-14T19:54:32Z")

</div>

forgot I added a

```
#pragma once

```

to the Tank.h file on the top  
but that should not change anything and I assumed you just forgot to copy paste it in

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [May 14, 2019, 7:56pm UTC](https://forums.unrealengine.com/t/i-can-not-find-my-c-class-in-unreal/448970/7 "2019-05-14T19:56:52Z")

</div>

Can you add the cpp code as well.

And I assume you already tried the traditional delete

- Folder /Intermediate
- Folder /Binaries
- Generated your visual studio project files again

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6c1df161](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6c1df161](https://forums.unrealengine.com/u/anonymous_user_6c1df161)\
**Post date:** [May 14, 2019, 8:02pm UTC](https://forums.unrealengine.com/t/i-can-not-find-my-c-class-in-unreal/448970/8 "2019-05-14T20:02:27Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Lardo\_Deepdelver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lardo\_Deepdelver](https://forums.unrealengine.com/u/Lardo_Deepdelver)\
**Post date:** [May 14, 2019, 8:07pm UTC](https://forums.unrealengine.com/t/i-can-not-find-my-c-class-in-unreal/448970/9 "2019-05-14T20:07:06Z")

</div>

😛 wanted to write the

Traditional delete Dance

since I have to do that quite regularly…

---

<div class="post-metadata">

**Author:** ![Void\_Lotus](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Void\_Lotus](https://forums.unrealengine.com/u/Void_Lotus)\
**Post date:** [October 25, 2020, 7:23am UTC](https://forums.unrealengine.com/t/i-can-not-find-my-c-class-in-unreal/448970/10 "2020-10-25T07:23:16Z")

</div>

traditional delete works for me. (UE 4.25.1)
