I can't create new folder in C++ Classes


Like the photo shows,i can’t create new folder

Someone can help me to solve this problem?Thanks

2 Likes

When you create the c++ asset, it will ask you where you want to put it. Put the name of a new folder in the path when you enter the location.

Actually it still not working,sure it will create the folder that i want but it will not show in the editor,moreover when i compiling my project the error message said it cant find this file.

In visual studio the actor that i created in this folder(.h and .cpp) is exist.

You need to restart the editor before it will show up.

I added a pointer to the one level up directory of the solution, then made a build of the solution and reloaded the UE. The folder appeared. Hope it helps you too.
Change #include "123/MyActor.h" to #include "../123/MyActor.h"

2 Likes