stride3d / stride

Stride Game Engine (formerly Xenko)
https://stride3d.net
MIT License
6.47k stars 937 forks source link

Allow empty folders in Editor #1859

Open jusvit opened 12 months ago

jusvit commented 12 months ago

Version: 4.1.0.1898

My flow of development is to create a folder structure for my game before I begin development.

I usually follow the following:

So when I started my project in Stride, it allowed me to create these folders (under Assets). Cut down version image

I put the default scene in the Scene folder but prefabs folder is empty (For future use) image

Now, when I save the editor & modifications, and close Stride then reopen. I am greeted with the following: image

All the empty folders are gone (Nor did they ever exist in the file system).

I would expect it to actually create these folders and keep them because I made them.

Also even if I made them manually in the file system, Stride doesn't detect them.

(Sorry if duplicate)

manio143 commented 11 months ago

Currently the reason for it is that Stride creates folder structure based on asset files being loaded. No files, bo folders. However, Visual Studio allows creating empty folders and marks them in the csproj. We can try to follow a similar approach. When a folder is no longer empty the project file is updated to remove the empty folder reference.