# C++ classes are disappearing in editor, but they are appearing in Visual Studio?!

**URL:** <https://forums.unrealengine.com/t/c-classes-are-disappearing-in-editor-but-they-are-appearing-in-visual-studio/783711>\
**Category:** C++\
**Tags:** unreal-engine, editor, Visual-Studio, CPP, question, Blueprint\
**Created:** [March 4, 2023, 4:35pm UTC](https://forums.unrealengine.com/t/c-classes-are-disappearing-in-editor-but-they-are-appearing-in-visual-studio/783711 "2023-03-04T16:35:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![TuppsMidel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TuppsMidel](https://forums.unrealengine.com/u/TuppsMidel)\
**Post date:** [March 6, 2023, 7:28pm UTC](https://forums.unrealengine.com/t/c-classes-are-disappearing-in-editor-but-they-are-appearing-in-visual-studio/783711/2 "2023-03-06T19:28:50Z")

</div>

I had the same issue. Solution from here worked for me.

> [@My C++ classes disappear after reopening the project. Why?](https://forums.unrealengine.com/t/my-c-classes-disappear-after-reopening-the-project-why/535990):
>
> I have created the actor MyEarth which loads a staticmesh from Content Directory and the class MyGameModeBase (derived from GameModeBase) which spawns an instance of MyEarth in a position. Everything works fine, the actor appears as expected. But,after saving eveything,when i reopen the project, my c++ classes MyEarth and MyGameModeBase are no longer in the C++Classes Folder of the Content Drawer of the Editor,and when i run the project,nothing appears and no MyEarth actor in the Outliner. Obv…

---

_[View the full topic](https://forums.unrealengine.com/t/c-classes-are-disappearing-in-editor-but-they-are-appearing-in-visual-studio/783711)._
