In my case I had a class created that did not inherit from any other class. At some point, I decided I wanted it to inherit from AActor so I added the : public AActor
in the class declaration.
Following this, it was not showing in the explorer and that was because in the .h file I had to add the UCLASS()
tag at the top as well as the GENERATED_BODY()
in the class.