{"id":251146,"date":"2024-10-29T09:09:18","date_gmt":"2024-10-29T16:09:18","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=251146"},"modified":"2024-11-04T15:14:51","modified_gmt":"2024-11-04T23:14:51","slug":"create-unreal-engine-modules-faster","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/create-unreal-engine-modules-faster\/","title":{"rendered":"Create Unreal Engine modules faster"},"content":{"rendered":"<p>Unreal Engine modules help keep your code organized and modular. However, creating modules can be a tedious and error-prone process that involves manually editing configuration files and adding boilerplate code.<\/p>\n<p>Visual Studio 2022 version 17.11 comes with a new dialog to help with this process. With the new <em>Add Module<\/em> dialog, you can quickly add new modules to your project without leaving Visual Studio or manually editing configurations.<\/p>\n<h2>How to use the Add Unreal Engine Module dialog<\/h2>\n<p>To use the <em>Add Unreal Engine Module<\/em> dialog, you need to have an Unreal Engine project open in Visual Studio. You can do this by opening the .<a id=\"post-251146-_Int_OO88J7OY\"><\/a>sln file generated by the Unreal Editor from your project folder, or by <a href=\"https:\/\/devblogs.microsoft.com\/cppblog\/directly-edit-unreal-engine-projects-in-visual-studio-2022\/\">opening the Unreal Engine project directly<\/a> by opening the folder containing the *.uproject file through File-&gt;Open-&gt;Folder&#8230;.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-251147\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/10\/word-image-251146-1.png\" alt=\"Ctrl+Shift+Alt+O to open a new folder\" width=\"554\" height=\"266\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/10\/word-image-251146-1.png 554w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/10\/word-image-251146-1-300x144.png 300w\" sizes=\"(max-width: 554px) 100vw, 554px\" \/><\/p>\n<p>Once you have your project open, right click on the project in Solution Explorer and select <strong>Add &gt; Unreal Engine Item<\/strong>. This will open the <em>Add New Item<\/em> dialog, where you can select <em>Empty Unreal Engine Module<\/em> to launch the <em>Add Unreal Engine Module<\/em> dialog. This dialog lets you specify the name, type, loading phase, and path of your new module.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-251148\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/10\/word-image-251146-2.png\" alt=\"Image showing the Add Unreal Engine Module\" width=\"1024\" height=\"576\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/10\/word-image-251146-2.png 1024w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/10\/word-image-251146-2-300x169.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2024\/10\/word-image-251146-2-768x432.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>After you click <strong>OK<\/strong>, Visual Studio will create the module folder and files for you and update the project settings accordingly. Visual Studio also updates the *.uproject file, registering the module there and makes sure that the module builds. You can then start writing your module code right away or use the <a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/easily-add-unreal-engine-classes-to-your-c-project\/\"><em>Add Unreal Engine Class<\/em><\/a> dialog to add new classes to your module.<\/p>\n<h2>Why use Unreal Engine modules<\/h2>\n<p>Unreal Engine modules are a way of organizing your code into self-contained units that can be loaded and unloaded at runtime. Modules can <a id=\"post-251146-_Int_1hKkP26m\"><\/a>contain C++ code, assets, shaders, blueprints, and other resources that are related to a specific functionality or feature.<\/p>\n<p>Using modules has several benefits, such as:<\/p>\n<ul>\n<li><strong>Improving code readability and maintainability<\/strong> by separating concerns and reducing coupling.<\/li>\n<li><strong>Enhancing performance and memory usage<\/strong> by loading only the modules needed for a given context.<\/li>\n<li><strong>Enabling code reuse and sharing<\/strong> by creating libraries of common or generic modules that can be used across different projects or platforms.<\/li>\n<\/ul>\n<p><strong>Simplifying packaging and deployment<\/strong> by bundling modules together into plugins or DLCs.<\/p>\n<p>To learn more about Unreal Engine modules, check out the <a href=\"https:\/\/dev.epicgames.com\/community\/learning\/knowledge-base\/GDD9\/unreal-engine-modules-overview-and-structure\">official documentation<\/a>.<\/p>\n<h2>Give us your feedback<\/h2>\n<p>We hope you enjoy using the new <em>Add Module<\/em> dialog and find it useful for your Unreal Engine development. We&#8217;d love to hear your feedback and suggestions on how we can improve this feature and make Visual Studio even better for you.<\/p>\n<p>Thank you for your continuous support and feedback, which helps us make Visual Studio the best tool for your development needs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unreal Engine modules help keep your code organized and modular. However, creating modules can be a tedious and error-prone process that involves manually editing configuration files and adding boilerplate code. Visual Studio 2022 version 17.11 comes with a new dialog to help with this process. With the new Add Module dialog, you can quickly add [&hellip;]<\/p>\n","protected":false},"author":706,"featured_media":251148,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[472,155],"tags":[179,6911],"class_list":["post-251146","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gaming","category-visual-studio","tag-game-development","tag-unreal-engine"],"acf":[],"blog_post_summary":"<p>Unreal Engine modules help keep your code organized and modular. However, creating modules can be a tedious and error-prone process that involves manually editing configuration files and adding boilerplate code. Visual Studio 2022 version 17.11 comes with a new dialog to help with this process. With the new Add Module dialog, you can quickly add [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/251146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/706"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=251146"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/251146\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/251148"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=251146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=251146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=251146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}