Tips for organize c++ code files?
Hi, i found that you can not create folders on Unreal Editor's contents viewer like blueprint.
and if i try to organize my codes on Visual Studio by just create filter on solution explorer, it just get reset at some point.
So i want to ask some advanced unreal users that how they organize code files. so that i can organize my code files :)
C++ classes in Content Browser is just for blueprint only users, more naturally you should use Class viewer in Window->Devlopment Tools->Class Viewer, it hsows class in inherence tree, blueprints included. You cna not change organization in content browser, because C++ classes are just virtual assets created on runtime, while other assets are uassets files which can be moved.
VS project is not needed for compilation, it only exist for you to open end edit files, it get regenerated if you right click uproject file and generate them, also class wizard in editor will trigger regeneration of project files. With regeneration all configuration in project gets overwritten back to default settings, thats why it resets.
There only 2 ways to organize cod filese:
answered Dec 15 '18 at 01:13 AM
Simply close everything, go to file explorer, make your sub folders and move files arround.
Then right click on your upluggin file and select regenerate vs files Open vs solution and try to rebuild => it will fail Fix all includes as you moved files ( thats why there is no "drag &drop" in UE/vs )
Once it build, your are set :-)
answered Dec 15 '18 at 11:08 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here