{"id":5178,"date":"2023-10-14T22:04:17","date_gmt":"2023-10-14T14:04:17","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=5178"},"modified":"2023-10-14T22:32:57","modified_gmt":"2023-10-14T14:32:57","slug":"live-coding","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=5178","title":{"rendered":"Live Coding"},"content":{"rendered":"\n<p><a href=\"https:\/\/docs.unrealengine.com\/5.0\/zh-CN\/using-live-coding-to-recompile-unreal-engine-applications-at-runtime\/\">https:\/\/docs.unrealengine.com\/5.0\/zh-CN\/using-live-coding-to-recompile-unreal-engine-applications-at-runtime\/<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5728\u8fd0\u884c\u65f6\u91cd\u65b0\u7f16\u8bd1\u5e76\u4fee\u6b63\u4f60\u7684\u6e38\u620f\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002<\/h2>\n\n\n\n<p><strong>unreal<\/strong>\u652f\u6301\u57fa\u4e8e<a href=\"https:\/\/liveplusplus.tech\/index.html\">Live++<\/a>\u7684Live Coding\u65b9\u6848\u3002Live Coding\u7cfb\u7edf\u53ef\u4ee5\u5728\u5f15\u64ce\u8fd0\u884c\u7684\u65f6\u5019\uff0c\u91cd\u65b0\u7f16\u8bd1\u5e94\u7528\u7684C++\u4ee3\u7801\uff0c\u5e76\u4fee\u6b63\u5176\u4e8c\u8fdb\u5236\u6587\u4ef6\u3002\u8be5\u529f\u80fd\u5728\u4ee5\u4e0b\u60c5\u51b5\u4e0b\u53ef\u7528\uff1a<\/p>\n\n\n\n<ul><li>\u5728\u865a\u5e7b\u7f16\u8f91\u5668\u4e2d\u7f16\u8f91\u4f60\u7684\u5e94\u7528\u3002<\/li><li>\u7528\u7f16\u8f91\u5668\u5185\u6e38\u73a9\uff08PIE\uff09\u8fd0\u884c\u4f60\u7684\u5e94\u7528\u3002<\/li><li>\u5728\u8c03\u8bd5\u65f6\u8fd0\u884c\u9644\u52a0\u5230\u7f16\u8f91\u5668\u7684\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u7684\u684c\u9762\u6784\u5efa\u3002<\/li><\/ul>\n\n\n\n<p>\u8fd9\u610f\u5473\u7740\u4e0d\u9700\u8981\u4e2d\u6b62\u6e38\u73a9\u6d4b\u8bd5\u6216\u8005\u7f16\u8f91\u5668\u4e2d\u7684\u7f16\u5199\u5de5\u4f5c\uff0c\u5c31\u53ef\u4ee5\u5bf9C++\u7684\u7c7b\u8fdb\u884c\u4fee\u6539\uff0c\u91cd\u65b0\u7f16\u8bd1\uff0c\u7136\u540e\u7acb\u523b\u770b\u5230\u53d8\u52a8\u751f\u6548\u3002\u8fd9\u5728\u4f7f\u7528C++\u8fd0\u884c\u65f6\u903b\u8f91\u65f6\u5bf9\u4e8e\u8fed\u4ee3\u5f0f\u5f00\u53d1\u975e\u5e38\u6709\u76ca\uff0c\u6bd4\u5982\u6e38\u620f\u4ee3\u7801\u6216\u8005\u524d\u7aef\u7528\u6237\u4ea4\u4e92\u3002\u867d\u7136\u00a0<strong>\u70ed\u91cd\u8f7d\uff08Hot Reload\uff09<\/strong>\u00a0**\u7cfb\u7edf\u4ecd\u7136\u53ef\u7528\uff0c\u4f46\u662fLive Coding\u901f\u5ea6\u66f4\u5feb\u5e76\u4e14\u66f4\u52a0\u7075\u6d3b\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u5982\u4f55\u4f7f\u7528livecoding\">\u5982\u4f55\u4f7f\u7528Live Coding<\/h2>\n\n\n\n<p>\u6240\u6709\u7684\u65b0\u7248\u672c\u865a\u5e7b\u5f15\u64ce\u5b89\u88c5\u90fd\u9ed8\u8ba4\u542f\u7528Live Coding\u3002\u5f53\u6253\u5f00IDE\u65f6Live Coding\u63a7\u5236\u53f0\u4f1a\u81ea\u52a8\u542f\u52a8\uff0c\u4f46\u662f\u5904\u4e8e\u9690\u85cf\u72b6\u6001\u3002<\/p>\n\n\n\n<p>\u5982\u679c\u63a7\u5236\u53f0\u9690\u85cf\u4e86\uff0c\u5b83\u4f1a\u5728\u542f\u52a8Live Coding\u6784\u5efa\u7684\u65f6\u5019\u6253\u5f00\u3002<\/p>\n\n\n\n<p><strong>Live Coding\u63a7\u5236\u53f0\u4e3a\u7f16\u8bd1\u72b6\u6001\u63d0\u4f9b\u4e00\u4e2a\u8f93\u51fa\u65e5\u5fd7\u3002\u8fd9\u72ec\u7acb\u4e8e\u901a\u5e38\u7684&nbsp;\u8f93\u51fa\u65e5\u5fd7\uff08Output Log\uff09\uff0c\u5e76\u4e14\u53ea\u663e\u793aLive Coding\u7684\u6784\u5efa\u4fe1\u606f\u3002<\/strong><\/p>\n\n\n\n<p class=\"has-text-color has-luminous-vivid-orange-color\"><strong>\u8981\u5f00\u59cb\u4e00\u4e2a\u6784\u5efa\uff0c\u5728\u4f7f\u7528IDE\u6216\u865a\u5e7b\u5f15\u64ce\u65f6\u6309\u4e0b&nbsp;CTRL+ALT+F11\u3002\u4e00\u4e2a\u901a\u77e5\u4fe1\u606f\u4f1a\u663e\u793a\u5728\u5c4f\u5e55\u53f3\u4e0b\u89d2\uff0c\u663e\u793a\u6784\u5efa\u7684\u72b6\u6001\u3002\u5728\u6784\u5efa\u8fd0\u884c\u65f6\uff0c\u4f60\u53ef\u4ee5\u7ee7\u7eed\u5728\u7f16\u8f91\u5668\u4e2d\u5de5\u4f5c\u6216\u8005\u6d4b\u8bd5\u9879\u76ee\uff0c\u800c\u4e0d\u4f1a\u53d7\u5230\u5e72\u6270\u3002<\/strong><\/p>\n\n\n\n<p>\u5982\u679c\u6784\u5efa\u6210\u529f\uff0c\u5c06\u4f1a\u7acb\u523b\u770b\u5230\u53d8\u52a8\u3002<\/p>\n\n\n\n<p>Live Coding\u5728\u865a\u5e7b\u5f15\u64ce\u6253\u5f00\u65f6\u3001\u5728\u4f7f\u7528PIE\u65f6\u6216\u8005\u9644\u52a0\u5230\u539f\u751f\u684c\u9762\u73af\u5883\u4e2d\u7684\u6253\u5305\u6784\u5efa\u7684\u65f6\u5019\u90fd\u53ef\u7528\u3002\u5728\u6e38\u620f\u4e3b\u673a\u6216\u8005\u79fb\u52a8\u8bbe\u5907\u4e0a\u8fd0\u884c\u65f6\u4e0d\u53ef\u7528\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u7528livecodeing\u4fee\u6539\u53d8\u91cf\u7684\u9ed8\u8ba4\u6570\u503c\">\u7528Live Codeing\u4fee\u6539\u53d8\u91cf\u7684\u9ed8\u8ba4\u6570\u503c<\/h3>\n\n\n\n<p>\u4fee\u6539\u53d8\u91cf\u7684\u9ed8\u8ba4\u503c\u65f6\uff0c<code>.cpp<\/code>\u00a0\u6587\u4ef6\u4e2d\u5e94\u7528\u7684\u6784\u5efa\u5668\u6240\u8bbe\u7f6e\u7684\u6570\u503c\u4e0d\u4f1a\u5728\u73b0\u6709\u7684\u5bf9\u8c61\u5b9e\u4f8b\u4e2d\u66f4\u65b0\u3002\u7136\u800c\uff0c\u5982\u679c\u5728\u00a0<code>.h<\/code>\u00a0\u6587\u4ef6\u4e2d\u8fdb\u884c\u4fee\u6539\uff0c\u5c06\u4f1a\u770b\u5230\u53d8\u52a8\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u914d\u7f6e\">\u914d\u7f6e<\/h2>\n\n\n\n<p>\u5728&nbsp;<strong>\u7f16\u8f91\u5668\u504f\u597d\uff08Editor Preferences\uff09<\/strong>&nbsp;&gt;&nbsp;<strong>\u901a\u7528\uff08General\uff09<\/strong>&nbsp;&gt;&nbsp;<strong>Live Coding<\/strong>&nbsp;\u4e2d\u627e\u5230Live Coding\u7684\u76f8\u5173\u8bbe\u7f6e\u3002<\/p>\n\n\n\n<p><strong>\u901a\u7528\uff08General\uff09<\/strong>&nbsp;\u8bbe\u7f6e\u63a7\u5236Live Coding\u5982\u4f55\u5728\u5f00\u53d1\u73af\u5883\u4e2d\u8fd0\u4f5c\u3002<\/p>\n\n\n\n<table class=\"wp-block-table\"><thead><tr><th>\u8bbe\u7f6e<\/th><th>\u63cf\u8ff0<\/th><\/tr><\/thead><tbody><tr><td>\u542f\u7528Live Coding\uff08Enable Live Coding\uff09<\/td><td>\u542f\u7528\u65f6\uff0cLive Coding\u5c06\u4f5c\u4e3a\u865a\u5e7b\u7f16\u8f91\u5668\u7684\u7f16\u8bd1\u65b9\u6cd5\u3002\u5982\u679c\u505c\u7528\uff0c\u865a\u5e7b\u7f16\u8f91\u5668\u4f1a\u540e\u64a4\u81f3\u4f7f\u7528\u70ed\u91cd\u8f7d\u3002<\/td><\/tr><tr><td>\u542f\u52a8\uff08Startup\uff09<\/td><td>\u63a7\u5236\u865a\u5e7b\u7f16\u8f91\u5668\u542f\u52a8\u65f6Live Coding\u5982\u4f55\u8fd0\u884c\uff0c\u5305\u62ec\u662f\u5426\u6fc0\u6d3b\u63a7\u5236\u53f0\u6216\u8005\u4ee4\u5176\u53ef\u89c1\u3002<\/td><\/tr><tr><td>\u542f\u7528\u91cd\u5b9e\u4f8b\u5316\uff08Enable Reinstancing\uff09<\/td><td>\u63a7\u5236Live Coding\u662f\u5426\u4f7f\u7528\u5bf9\u8c61\u91cd\u5b9e\u4f8b\u5316\u3002\u542f\u7528\u65f6\uff0c\u5bf9\u8c61\u7684\u5b9e\u4f8b\u4f1a\u88ab\u66ff\u6362\uff0c\u4ee5\u6b64\u6765\u8ba9\u4ee3\u7801\u4e2d\u7684\u5927\u578b\u53d8\u52a8\u751f\u6548\u3002\u6211\u4eec\u4e0d\u5efa\u8bae\u505c\u7528\u8be5\u8bbe\u7f6e\uff0c\u5426\u5219\u53d8\u52a8\u5c06\u4f1a\u53d8\u52a8\u4e0d\u7a33\u5b9a\u3002\u66f4\u591a\u7ec6\u8282\u8bf7\u53c2\u8003\u4f7f\u7528Live Coding\u8fdb\u884c\u5bf9\u8c61\u91cd\u5b9e\u4f8b\u5316\u5c0f\u8282\u3002<\/td><\/tr><tr><td>\u81ea\u52a8\u7f16\u8bd1\u65b0\u6dfb\u52a0\u7684C++\u7c7b\uff08Automatically Compile Newly Added C++ Classes\uff09<\/td><td>\u542f\u7528\u65f6\uff0c\u6dfb\u52a0C++\u7c7b\u5c06\u4f1a\u81ea\u52a8\u4ee4Live Coding\u5c06\u5176\u7f16\u8bd1\u5e76\u6dfb\u52a0\u5230\u5e94\u7528\u3002<\/td><\/tr><\/tbody><\/table>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/docs.unrealengine.com\/5.0\/zh-CN\/using-live-codi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/5178"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5178"}],"version-history":[{"count":3,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/5178\/revisions"}],"predecessor-version":[{"id":5181,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/5178\/revisions\/5181"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}