{"id":1811,"date":"2020-08-14T18:45:56","date_gmt":"2020-08-14T10:45:56","guid":{"rendered":"https:\/\/www.yumefx.com\/?p=1811"},"modified":"2021-03-02T12:56:49","modified_gmt":"2021-03-02T04:56:49","slug":"unreal4-web-remote-control","status":"publish","type":"post","link":"https:\/\/www.yumefx.com\/?p=1811","title":{"rendered":"Unreal4 Web Remote Control"},"content":{"rendered":"\n<h1 style=\"text-align: center;\">\u529f\u80fd\u4ecb\u7ecd<\/h1>\n<p>\u4eceUnreal Engine 4.23\u7248\u672c\u5f00\u59cb\uff0c\u65b0\u589e\u4e86WebRemoteControl\u6a21\u5757\uff0c\u5728\u5f15\u64ce\u4e2d\u5f00\u542f\u4e00\u4e2a\u7f51\u7edc\u670d\u52a1\uff0c\u901a\u8fc7\u7c7bREST API\u53d1\u9001http\u8bf7\u6c42\u5c06\u6307\u4ee4\u53d1\u9001\u5230\u5f15\u64ce\u4e2d\uff0c\u4ece\u800c\u5b9e\u73b0\u8fdc\u7a0b\u63a7\u5236\u3002<\/p>\n<p>\u8fd9\u4e00\u6a21\u5757\u53ef\u4ee5\u7528\u6765\u5236\u4f5c\u7b2c\u4e09\u65b9\u5e73\u53f0\uff0c\u6bd4\u5982GM\u5de5\u5177\uff0c\u5b9e\u65f6\u5c55\u793a\u6e38\u620f\u53c2\u6570\u548c\u8c03\u8bd5\u8fd0\u884c\u4e2d\u7684\u6e38\u620f\uff1b\u6216\u8005\u865a\u62df\u5236\u7247\uff0c\u5982<a href=\"https:\/\/www.youtube.com\/watch?v=Hjb-AqMD-a4\">\u5b98\u65b9\u6f14\u793a\u89c6\u9891<\/a>\u4e2d\u5c55\u793a\u7684\u754c\u9762\u4e00\u6837\uff0c\u5c06\u5e38\u7528\u529f\u80fd\u96c6\u6210\u5230\u7f51\u9875\u6216\u8005APP\u9762\u677f\u4e2d\u65b9\u4fbf\u8c03\u7528\u3002<\/p>\n<p>\u4e3b\u8981\u6709\u4e24\u79cd\u8c03\u7528\u65b9\u5f0f\uff1a<\/p>\n<ul>\n<li>\u83b7\u53d6\/\u8bbe\u7f6eobject\u7684\u516c\u5f00\u5230\u84dd\u56fe\u548cpython\u7684\u5c5e\u6027<\/li>\n<li>\u8c03\u7528\u516c\u5f00\u5230\u84dd\u56fe\u548cpython\u7684\u51fd\u6570<\/li>\n<\/ul>\n<p>\u540e\u9762\u7684\u529f\u80fd\u6f14\u793a\u4f7f\u7528\u4e86Unreal Engine 4.24\u7248\u672c\uff0c\u5176\u4ed6\u7248\u672c\u53ef\u80fd\u6709\u5dee\u5f02\u3002<\/p>\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u529f\u80fd\u5f00\u542f<\/h1>\n<p>\u9996\u5148\u70b9\u51fb\u83dc\u5355Edit&gt;Plugins\u6253\u5f00\u63d2\u4ef6\u7a97\u53e3\uff0c\u542f\u7528Remote Control API\u63d2\u4ef6\u3002<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-1812 aligncenter\" src=\"http:\/\/www.yumefx.com\/wp-content\/uploads\/2020\/08\/ueweb_01.png\" alt=\"\" width=\"954\" height=\"437\" \/><\/p>\n<p>\u542f\u7528\u540e\u5982\u679c\u63d0\u793a\u9700\u8981\u91cd\u542f\u5219\u91cd\u542f\u5f15\u64ce\u3002<\/p>\n<p>\u7b2c\u4e8c\u6b65\uff0c\u6253\u5f00\u6d4b\u8bd5\u9879\u76ee\u540e\uff0c\u70b9\u51fb\u83dc\u5355Window&gt;Developer Tool&gt;Output Log\u6253\u5f00\u8f93\u51fa\u65e5\u5fd7\u7a97\u53e3\uff0c\u786e\u8ba4\u5de6\u4e0b\u89d2\u4e3aCMD\u6a21\u5f0f\uff08\u8fd8\u6709\u4e00\u4e2apython\u6a21\u5f0f\u53ef\u4ee5\u7528\u6765\u6267\u884cpython\u547d\u4ee4\uff09\uff0c\u8f93\u5165\u63a7\u5236\u53f0\u547d\u4ee4<code>WebControl.StartServer<\/code>\uff0c\u6267\u884c\u6210\u529f\u7ed3\u679c\u5982\u4e0b\u3002<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-1813 aligncenter\" src=\"http:\/\/www.yumefx.com\/wp-content\/uploads\/2020\/08\/ueweb_02.jpg\" alt=\"\" width=\"723\" height=\"176\" \/><\/p>\n<p>\u7136\u540e\u5373\u53ef\u53d1\u9001\u8bf7\u6c42\u547d\u4ee4\u8fdb\u884c\u8fdc\u7a0b\u63a7\u5236\u4e86\u3002<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\u7f51\u7edc\u670d\u52a1\u5668\u76d1\u542c\u672c\u57308080\u7aef\u53e3\uff0c\u9700\u786e\u4fdd\u6b64\u7aef\u53e3\u4e0d\u88ab\u9632\u706b\u5899\u62e6\u622a\uff0c\u63a7\u5236\u7aef\u53ef\u4ee5\u8bbf\u95ee\u8be5\u7aef\u53e3\u3002<\/p>\n<p>\u53e6\u5916\u8981\u6ce8\u610f\u7684\u4e00\u70b9\u662f\u57284.24\u7248\u672c\u4e2d\uff0c\u9ed8\u8ba4\u5f00\u542f\u672c\u5730\u56de\u73af\u5730\u5740\uff08127.0.0.1\uff09\u548c\u7f51\u7edc\u5730\u5740\uff08\u672c\u5730\u8fde\u63a5ip\uff09\u76848080\u7aef\u53e3\uff0c\u800c\u57284.25\u7248\u672c\u4e2d\uff0c\u9ed8\u8ba4\u53ea\u5f00\u542f\u672c\u5730\u56de\u73af\u5730\u5740\uff08127.0.0.1\uff09\u76848080\u7aef\u53e3\uff0c\u4f1a\u5bfc\u81f4\u53ea\u80fd\u5728\u672c\u5730\u8c03\u7528\u800c\u4ece\u5176\u4ed6\u7535\u8111\u4e0a\u65e0\u6cd5\u8fdc\u7a0b\u8c03\u7528\u7f51\u7edc\u670d\u52a1\u3002<\/p>\n<p>\u89e3\u51b3\u7684\u529e\u6cd5\u662f\u4fee\u6539\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u8def\u5f84\u662f<code>Engine\\Config\\BaseEngine.ini<\/code>\uff0c\u5728\u8fd9\u4e2a\u6587\u4ef6\u4e2d\u52a0\u4e0a\u4e0b\u9762\u7684\u914d\u7f6e\u4fe1\u606f\uff0cIP\u6539\u4e3a\u672c\u5730\u8fde\u63a5\u7684IP\u5c31\u53ef\u4ee5\u5728\u5176\u4ed6\u7535\u8111\u4e0a\u8fdc\u7a0b\u8c03\u7528\u4e86\u3002<\/p>\n\n\n\n<pre>\n<span>[HTTPServer.Listeners]<\/span>\n<span>DefaultBindAddress=IP<\/span>\n<\/pre>\n\n\n\n<p>\u4e0d\u8fc7\u8fd9\u6837\u5199\u4f1a\u5bfc\u81f4\u672c\u5730\u56de\u73af\u5730\u5740\u53cd\u800c\u4e0d\u80fd\u4f7f\u7528\u8be5\u670d\u52a1\u4e86\uff0cemmm\u3002<\/p>\n<p>\u9664\u4e86\u5f00\u542f\u7f51\u7edc\u670d\u52a1\u7684<code>WebControl.StartServer<\/code>\u63a7\u5236\u53f0\u547d\u4ee4\uff0c\u8fd8\u6709\u5176\u4ed6\u4e24\u6761\u76f8\u5173\u547d\u4ee4\uff0c\u5206\u522b\u662f\u5173\u95ed\u7f51\u7edc\u670d\u52a1<code>WebControl.StopServer<\/code>\u548c\u7f51\u7edc\u670d\u52a1\u81ea\u52a8\u542f\u52a8<code>WebControl.EnableServerOnStartup<\/code>\uff08\u4fdd\u5b58\u5230\u9879\u76ee\u914d\u7f6e\u4e2d\uff0c\u6bcf\u6b21\u6253\u5f00\u8be5\u9879\u76ee\u65f6\u81ea\u52a8\u6253\u5f00\u7f51\u7edc\u670d\u52a1\uff09\u3002<\/p>\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">API\u8c03\u7528\u65b9\u5f0f<\/h1>\n<p>\u4f7f\u7528\u4e13\u95e8\u7528\u4e8e\u6d4b\u8bd5API\u8bf7\u6c42\u548c\u54cd\u5e94\u7684\u5de5\u5177\uff0c\u4f8b\u5982<a id=\"content_link\" href=\"https:\/\/www.getpostman.com\/\">Postman<\/a> \u6216<a id=\"content_link\" href=\"https:\/\/insomnia.rest\/\">Insomnia<\/a> \uff0c\u6211\u6bd4\u8f83\u4e60\u60ef\u4f7f\u7528Postman\uff0c\u8fd9\u91cc\u5c31\u4e0d\u8be6\u7ec6\u8bf4Postman\u7684\u7528\u6cd5\u4e86\uff0c\u81ea\u884c\u641c\u7d22\u5373\u53ef\u3002<\/p>\n<h3>\u00a0<\/h3>\n<h3>\u83b7\u53d6Object\u7684\u5c5e\u6027<\/h3>\n<p><img loading=\"lazy\" class=\"size-full wp-image-1818 aligncenter\" src=\"http:\/\/www.yumefx.com\/wp-content\/uploads\/2020\/08\/ueweb_03.jpg\" alt=\"\" width=\"1275\" height=\"705\" \/><\/p>\n<p>\u4e0a\u56fe\u6240\u793a\u4e3a\u83b7\u53d6\u5f53\u524d\u5173\u5361\u4e2d\u73af\u5883\u7403\uff08\u4e16\u754c\u5927\u7eb2\u89c6\u56fe\u4e2d\u540d\u4e3aSkySphere\u7684Actor\uff09\u4e0a\u7684\u65cb\u8f6c\uff08RelativeRotation\uff09\u5c5e\u6027\u503c\u3002<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8bf7\u6c42\u65b9\u5f0f\u5fc5\u987b\u4e3a<code>PUT<\/code>\uff0c\u6b63\u6587\u683c\u5f0f\u5fc5\u987b\u4e3a<code>JSON<\/code>\uff08\u9ed8\u8ba4\u4e3aText\uff09\uff0c\u76ee\u6807\u5730\u5740\u4e3a<code>http:\/\/ip:8080\/remote\/object\/property<\/code>\uff0c\u53d1\u9001\u7ed3\u679c\u4e3a<code>200 OK<\/code>\u5e76\u4e14\u5f97\u5230\u8fd4\u56de\u7684\u7ed3\u679c\u8bf4\u660e\u6267\u884c\u6210\u529f\u3002<\/p>\n<h5>\u00a0<\/h5>\n<h5>\u53c2\u6570\u89e3\u91ca<\/h5>\n<p>\u8bf7\u6c42\u6b63\u6587\u4e2d\u7684\u4e09\u4e2a\u53c2\u6570\u5206\u522b\u662f<code>objectPath<\/code>\uff08\u5173\u5361\u4e2d\u7684\u7269\u4f53\uff09\u3001<code>access<\/code>\uff08\u8bfb\u5199\u6743\u9650\uff09\u3001<code>propertyName<\/code>\uff08\u5c5e\u6027\u540d\uff09\u3002<\/p>\n<p>\u5176\u4e2dobjectPath\u4e3a\u865a\u5e7b\u5f15\u64ce\u5bf9\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u7684\u6bcf\u4e2a\u8d44\u6e90\u548cActor\u7684\u552f\u4e00\u6807\u8bc6\u8def\u5f84\uff0c\u9075\u5faa\u4ee5\u4e0b\u683c\u5f0f\uff1a<\/p>\n\n\n\n<pre>\n<span>\/path\/PackageName.ObjectName:SubObjectName.SubObject<\/span>\n<\/pre>\n\n\n\n<p>\u8d44\u4ea7\uff08uasset\uff09\u7684ObjectPath\u53ef\u4ee5\u901a\u8fc7\u5728\u5185\u5bb9\u6d4f\u89c8\u5668\u7a97\u53e3\uff08<code>Content Browser<\/code>\uff09\u4e2d\u53f3\u952e\u8be5\u8d44\u4ea7\u83dc\u5355\u4e2d<code>Copy Referrence<\/code>\uff0c\u5373\u53ef\u83b7\u5f97\u3002<\/p>\n<p>\u5bf9\u4e8e\u5173\u5361\u4e2d\u7684\u7269\u4f53\uff08Uobject\uff09\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4e24\u79cd\u65b9\u6cd5\u83b7\u53d6\u3002<\/p>\n<p>\u7b2c\u4e00\u79cd\u662f\u901a\u8fc7\u4fee\u6539\u8be5\u7269\u4f53\uff0c\u7136\u540e\u67e5\u770b\u64a4\u9500\u5386\u53f2\u7a97\u53e3\uff08Edit&gt;Undo History\uff09\u83b7\u5f97\u8be5\u8def\u5f84\uff0c\u9700\u8981\u6253\u5f00\u53f3\u4e0b\u89d2\u7684\u663e\u793a\u4e8b\u52a1\u7ec6\u8282\uff08Show transactions details\uff09\u3002<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-1820 aligncenter\" src=\"http:\/\/www.yumefx.com\/wp-content\/uploads\/2020\/08\/ueweb_06.jpg\" alt=\"\" width=\"1487\" height=\"573\" \/><\/p>\n<p>\u9f20\u6807\u60ac\u505c\u5728\u5df2\u4fee\u6539\u5bf9\u8c61\u548c\u5c5e\u6027\uff08Modified objects and propertyies\uff09\u5217\u7684\u6761\u76ee\u4e0a\uff0c\u63d0\u793a\u6587\u672c\u5373\u4e3a\u5bf9\u5e94\u7684ObjectPath\u3002<\/p>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u65e2\u53ef\u4ee5\u83b7\u53d6\u5230\u5173\u5361\u4e2d\u7684\u7269\u4f53\uff08Uobject\uff09\u8def\u5f84\uff0c\u4e5f\u53ef\u4ee5\u83b7\u53d6\u5230\u8d44\u4ea7\uff08uasset\uff09\u8def\u5f84\u3002<\/p>\n<p>\u7b2c\u4e8c\u79cd\u65b9\u6cd5\u662f\u901a\u8fc7\u8c03\u7528\u84dd\u56fe\u51fd\u6570\u83b7\u5f97\u5f53\u524d\u5173\u5361\u4e2d\u6240\u6709Actor\u7684\u8def\u5f84\uff0c\u540e\u9762\u518d\u8be6\u7ec6\u4ecb\u7ecd\u3002<\/p>\n<p>\u7b2c\u4e8c\u4e2a\u53c2\u6570access\u6709\u4e09\u79cd\u7c7b\u578b\uff0c<code>READ_ACCESS<\/code>\u4e3a\u8bfb\u53d6\u7269\u4f53\u4e0a\u7684\u5c5e\u6027\uff0c<code>WRITE_ACCESS<\/code>\u548c<code>WRITE_TRANSACTION_ACCESS<\/code> \u4e3a\u4fee\u6539\u7269\u4f53\u4e0a\u7684\u5c5e\u6027\uff0c\u4e24\u8005\u7684\u533a\u522b\u662f<code>WRITE_TRANSACTION_ACCESS<\/code>\u4f1a\u5728\u9879\u76ee\u7684\u4e8b\u7269\u5386\u53f2\u4e2d\u8bb0\u5f55\u5c5e\u6027\u503c\u7684\u4fee\u6539\u3002<\/p>\n<p>\u53ef\u4ee5\u7406\u89e3\u4e3a<code>WRITE_ACCESS<\/code>\u65b9\u6cd5\u867d\u7136\u4fee\u6539\u4e86\u53c2\u6570\uff0c\u4f46\u5728\u4e0d\u4f1a\u7acb\u5373\u5f71\u54cd\u5f53\u524d\u5173\u5361\uff0c\u800c<code>WRITE_TRANSACTION_ACCESS<\/code>\u53ef\u4ee5\u7acb\u5373\u770b\u5230\u53c2\u6570\u4fee\u6539\u7684\u7ed3\u679c\uff0c\u4e0e\u5728\u7ec6\u8282\u9762\u677f\uff08Details\uff09\u4e2d\u4fee\u6539\u53c2\u6570\u76f8\u540c\uff0c\u4f1a\u8c03\u7528\u66f4\u591a\u94fe\u63a5\u5230\u8be5\u5c5e\u6027\u7684\u66f4\u6539\u524d\u548c\u66f4\u6539\u540e\u76f8\u5173\u4ee3\u7801\u3002<\/p>\n<p>\u56e0\u6b64\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\uff0c\u66f4\u591a\u4f7f\u7528<code>WRITE_TRANSACTION_ACCESS<\/code>\u7c7b\u578b\u3002<\/p>\n<p>\u7b2c\u4e09\u4e2a\u53c2\u6570\u4e3a<code>propertyName<\/code>\uff08\u5c5e\u6027\u540d\uff09\uff0c\u5373\u60f3\u8981\u8bfb\u53d6\u6216\u4fee\u6539\u7684\u5c5e\u6027\u540d\uff0c\u5f53\u7b2c\u4e8c\u4e2a\u53c2\u6570access\u4e3a<code>READ_ACCESS<\/code>\u65f6\uff0c\u53ef\u4ee5\u7701\u7565\u5c5e\u6027\u540d\u53c2\u6570\uff0c\u8fd9\u6837\u8fd4\u56de\u7684\u7ed3\u679c\u662f\u5f53\u524d\u7269\u4f53\u7684\u6240\u6709\u5c5e\u6027\u5217\u8868\u3002<\/p>\n<p>\u5f53\u4e0d\u77e5\u9053\u8981\u8bfb\u53d6\u7684\u5c5e\u6027\u7684\u4ee3\u7801\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b64\u65b9\u6cd5\u5217\u51fa\u5168\u90e8\u5c5e\u6027\u67e5\u770b\u3002<\/p>\n<p>\u5f53\u7b2c\u4e8c\u4e2a\u53c2\u6570access\u4e3a<code>WRITE_TRANSACTION_ACCESS<\/code>\u65f6\uff0c\u9664\u4e86\u5199\u4e0a\u7b2c\u4e09\u4e2a\u53c2\u6570<code>propertyName<\/code>\uff08\u5c5e\u6027\u540d\uff09\uff0c\u8fd8\u8981\u52a0\u4e0a\u7b2c\u56db\u4e2a\u53c2\u6570<code>propertyValue<\/code>\uff08\u5c5e\u6027\u503c\uff09\u3002<\/p>\n<p>\u5982\u4e0b\u56fe\u793a\u4e3a\u4fee\u6539\u73af\u5883\u7403\u65cb\u8f6c\u503c\u7684\u53c2\u6570\u3002<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-1821 aligncenter\" src=\"http:\/\/www.yumefx.com\/wp-content\/uploads\/2020\/08\/ueweb_07.jpg\" alt=\"\" width=\"1291\" height=\"551\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230<code>propertyValue<\/code>\uff08\u5c5e\u6027\u503c\uff09\u7684\u5199\u6cd5\u9700\u8981\u4e0e\u8bfb\u53d6\u5230\u7684\u683c\u5f0f\u76f8\u540c\u3002<\/p>\n<h3>\u00a0<\/h3>\n<h3>\u8c03\u7528\u84dd\u56fe\u51fd\u6570<\/h3>\n<p>\u4e0a\u9762\u8bf4\u8fc7\u901a\u8fc7\u8c03\u7528\u84dd\u56fe\u51fd\u6570\u5217\u51fa\u5f53\u524d\u573a\u666f\u4e2d\u7684\u6240\u6709Actor\uff0c\u4e0b\u9762\u5c31\u662f\u5177\u4f53\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-1822 aligncenter\" src=\"http:\/\/www.yumefx.com\/wp-content\/uploads\/2020\/08\/ueweb_08.jpg\" alt=\"\" width=\"1261\" height=\"851\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\uff0c\u6700\u5927\u7684\u533a\u522b\u662f\u8bbf\u95ee\u76ee\u6807\u5730\u5740\u53d8\u6210\u4e86<code>http:\/\/ip:8080\/remote\/object\/call<\/code>\uff0c\u5176\u6b21\u53c2\u6570\u4e5f\u6709\u4e0d\u540c\u3002<\/p>\n<p>\u7b2c\u4e00\u4e2a\u53c2\u6570\u4f9d\u7136\u662f<code>objectPath<\/code>\uff0c\u53ea\u4e0d\u8fc7\u8fd9\u91cc\u5199\u7684\u4e0d\u662f\u7269\u4f53\u7684\u8def\u5f84\uff0c\u800c\u662f\u8981\u8c03\u7528\u7684\u84dd\u56fe\u811a\u672c\u7684\u8def\u5f84\u3002<\/p>\n<p>\u7b2c\u4e8c\u4e2a\u53c2\u6570\u4e3a<code>functionName<\/code>\uff0c\u4e3a\u8981\u8c03\u7528\u7684\u84dd\u56fe\u51fd\u6570\u7684\u540d\u79f0\u3002<\/p>\n<p>\u8be5\u811a\u672c\u8def\u5f84\u5982\u4e0b\uff1a<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-1823 aligncenter\" src=\"http:\/\/www.yumefx.com\/wp-content\/uploads\/2020\/08\/ueweb_09.jpg\" alt=\"\" width=\"1376\" height=\"228\" \/><\/p>\n<p>\u53ef\u4ee5\u770b\u5230\u811a\u672c\u662fC++\u7684\u5e93\u6587\u4ef6\uff0c\u4f46\u53f3\u4fa7\u51fd\u6570\u4ee3\u7801\u4e2d\u6709<code>BlueprintCallable<\/code>\uff0c\u8868\u660e\u53ef\u4ee5\u5728\u84dd\u56fe\u4e2d\u8c03\u7528\u3002<\/p>\n<p>\u9664\u4e86\u8fd9\u4e24\u4e2a\u53c2\u6570\u5916\uff0c\u8fd8\u6709\u7b2c\u4e09\u4e2a\u53c2\u6570<code>parameters<\/code>\u5411\u51fd\u6570\u4e2d\u4f20\u5165\u7684\u53c2\u6570\u4ee5\u53ca\u7b2c\u56db\u4e2a\u53c2\u6570<code>generateTransaction<\/code>\u751f\u6210\u4e8b\u52a1\u3002<\/p>\n<p>\u751f\u6210\u4e8b\u52a1\u53c2\u6570\u7c7b\u4f3c\u4e8e<code>WRITE_TRANSACTION_ACCESS<\/code>\uff0c\u9ed8\u8ba4\u4e3afalse\uff0c\u5f53\u8c03\u7528\u51fd\u6570\u4fee\u6539\u5173\u5361\u4e2d\u7269\u4f53\u65f6\uff0c\u5fc5\u987b\u8bbe\u7f6e\u4e3atrue\u65f6\u624d\u80fd\u5b9e\u65f6\u770b\u5230\u4fee\u6539\u6548\u679c\u3002<\/p>\n<p>\u4f8b\u5982\u4ee5\u4e0b\u4ee3\u7801\uff0c\u53ef\u4ee5\u5b9e\u65f6\u4fee\u6539\u706f\u5149\u7269\u4f53\u7684\u65cb\u8f6c\u5c5e\u6027\u3002<\/p>\n\n\n\n<pre>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Game\/ThirdPersonBP\/Maps\/ThirdPersonExampleMap.ThirdPersonExampleMap:PersistentLevel.LightSource_0.LightComponent0&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;SetRelativeRotation&quot;,<\/span>\n<span>    &quot;parameters&quot;:{<\/span>\n<span>        &quot;NewRotation&quot;:{<\/span>\n<span>            &quot;Pitch&quot;:90,<\/span>\n<span>            &quot;Yaw&quot;:0,<\/span>\n<span>            &quot;Roll&quot;:0<\/span>\n<span>        }<\/span>\n<span>    },<\/span>\n<span>    &quot;generateTransaction&quot;:true<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<p>\u540c\u6837\u53ef\u4ee5\u5728\u7ec4\u4ef6\u7684\u5e93\u6587\u4ef6\u4e2d\u53ef\u4ee5\u627e\u5230\u8be5\u51fd\u6570\u3002<\/p>\n<p><img loading=\"lazy\" class=\"size-full wp-image-1824 aligncenter\" src=\"http:\/\/www.yumefx.com\/wp-content\/uploads\/2020\/08\/ueweb_10.jpg\" alt=\"\" width=\"1505\" height=\"646\" \/><\/p>\n<p>\u6ce8\u610f<code>parameters<\/code>\u91cc\u9762\u4f20\u5165\u7684\u53c2\u6570\u540d\u3002<\/p>\n<p>\u4e0a\u9762\u8bf4\u8fc7\uff0c\u8be5\u65b9\u6cd5\u662f\u57fa\u4e8e\u5411\u84dd\u56fe\u516c\u5f00\u7684\u51fd\u6570\u7684\uff0c\u56e0\u6b64\u5f53\u4e0d\u77e5\u9053\u60f3\u8c03\u7528\u7684\u51fd\u6570\u7684\u540d\u79f0\u548c\u53c2\u6570\u65f6\uff0c\u53ef\u4ee5\u5148\u627e\u5230\u5bf9\u5e94\u7684\u7269\u4f53\u7684\u5e93\u6587\u4ef6\uff0c\u5728\u5e93\u6587\u4ef6\u4e2d\u641c\u7d22BlueprintCallable\u8fdb\u884c\u6392\u67e5\uff0c\u5c31\u53ef\u4ee5\u627e\u5230\u53ef\u7528\u7684\u51fd\u6570\u4ee5\u53ca\u4f20\u5165\u7684\u53c2\u6570\u3002<\/p>\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u7f16\u8f91\u72b6\u6001\u4e0e\u8fd0\u884c\u72b6\u6001<\/h1>\n<p>\u5728UE\u4e2d\uff0c\u7f16\u8f91\u72b6\u6001\u4e0e\u8fd0\u884c\u72b6\u6001\u662f\u4e0d\u540c\u7684\uff0c\u4e0a\u9762\u7684GetAllLevelActors\u51fd\u6570\uff0c\u53ea\u80fd\u83b7\u53d6\u5230\u7f16\u8f91\u72b6\u6001\u4e0b\u6240\u6709\u7684\u7269\u4f53\uff0c\u5982\u679c\u5728\u8fd0\u884c\u72b6\u6001\u6267\u884c\u5219\u8fd4\u56de\u7ed3\u679c\u4e3a\u7a7a\u3002<\/p>\n<p>\u540c\u7406\u5728\u4fee\u6539\u7269\u4f53\u5c5e\u6027\u65f6\uff0c\u4e5f\u8981\u6839\u636e\u5f53\u524dUE\u72b6\u6001\u83b7\u53d6\u76ee\u6807\u7269\u4f53\u7684\u76f8\u5e94ObjectPath\u3002<\/p>\n<p>\u4f8b\u5982\u540c\u6837\u4e00\u4e2aHDRIBackdrop\u7269\u4f53\uff0c\u5728\u4e24\u79cd\u72b6\u6001\u4e0b\u7684ObjectPath\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre>\n<span>#\u7f16\u8f91\u72b6\u6001<\/span>\n<span>\/Game\/VprodProject\/Maps\/Main.Main:PersistentLevel.HDRIBackdrop<\/span>\n<span>#\u8fd0\u884c\u72b6\u6001<\/span>\n<span>\/Game\/VprodProject\/Maps\/UEDPIE_0_Main.Main:PersistentLevel.HDRIBackdrop<\/span>\n<\/pre>\n\n\n\n<p>\u90a3\u4e48\u5728\u8fd0\u884c\u72b6\u6001\u4e0b\u5982\u4f55\u83b7\u53d6\u5230\u9700\u8981\u7684Actor\u5462\uff1f<\/p>\n<p>\u53ef\u4ee5\u901a\u8fc7GetActorOfClass\u51fd\u6570\uff0c\u83b7\u53d6\u5230\u4e0d\u540c\u72b6\u6001\u4e0b\u7684\u6240\u9009class\u7684\u7269\u4f53\uff0c\u800cclass\u79cd\u7c7b\u53ef\u4ee5\u901a\u8fc7GetObjectClass\u51fd\u6570\u67e5\u770b\u3002<\/p>\n\n\n\n<pre>\n<span>#\u67e5\u770b\u7269\u4f53\u7684class<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Script\/engine.Default__GameplayStatics&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;GetObjectClass&quot;,<\/span>\n<span>    &quot;parameters&quot;:{<\/span>\n<span>        &quot;Object&quot;:&quot;\/Game\/VprodProject\/Maps\/Main.Main:PersistentLevel.HDRIBackdrop&quot;<\/span>\n<span>    }<\/span>\n<span>}<\/span>\n<span><\/span>\n<span>#\u6839\u636e\u7269\u4f53class\u67e5\u627e\u7269\u4f53<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Script\/engine.Default__GameplayStatics&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;GetActorOfClass&quot;,<\/span>\n<span>    &quot;parameters&quot;:{<\/span>\n<span>        &quot;WorldContextObject&quot;:&quot;\/Game\/VprodProject\/Maps\/UEDPIE_0_Main.Main&quot;,<\/span>\n<span>        &quot;ActorClass&quot;:&quot;\/HDRIBackdrop\/Blueprints\/HDRIBackdrop.HDRIBackdrop_C&quot;<\/span>\n<span>    }<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u5e38\u7528API\u51fd\u6570<\/h1>\n<p>\u4e0b\u9762\u662f\u6211\u6574\u7406\u7684\u4e00\u4e9b\u5e38\u7528\u51fd\u6570\uff0c\u5bf9\u5176\u8fdb\u884c\u5c01\u88c5\u5e76\u5236\u4f5cUI\u754c\u9762\u5373\u53ef\u5b8c\u6210\u4e00\u4e2a\u8fdc\u7a0b\u63a7\u5236\u5de5\u5177\u3002<\/p>\n<p>\u7b2c\u4e00\u884c\u4e3aproperty\uff08\u8bfb\u53d6\u5c5e\u6027\uff09\u6216call\uff08\u8c03\u7528\u51fd\u6570\uff09\uff0c\u540e\u9762\u4e3a\u6b63\u6587\u5177\u4f53\u53c2\u6570\u3002<\/p>\n<h5>\u00a0<\/h5>\n<h5>\u83b7\u53d6\u5f53\u524d\u5173\u5361\u7f16\u8f91\u8def\u5f84<\/h5>\n<p>\u5e93\u6587\u4ef6\u4e3a<code>Engine\/Plugins\/Editor\/EditorScriptingUtilities\/Source\/EditorScriptingUtilities\/Public\/EditorLevelLibrary.h<\/code><\/p>\n\n\n\n<pre>\n<span>call<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Script\/EditorScriptingUtilities.Default__EditorLevelLibrary&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;GetEditorWorld&quot;<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h5>\u00a0<\/h5>\n<h5>\u83b7\u53d6\u5f53\u524d\u5173\u5361\u8fd0\u884c\u8def\u5f84<\/h5>\n<p>\u5e93\u6587\u4ef6\u540c\u4e0a<\/p>\n\n\n\n<pre>\n<span>call<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Script\/EditorScriptingUtilities.Default__EditorLevelLibrary&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;GetGameWorld&quot;<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h5>\u00a0<\/h5>\n<h5>\u83b7\u53d6\u6240\u6709Actor<\/h5>\n<p>\u5e93\u6587\u4ef6\u540c\u4e0a<\/p>\n\n\n\n<pre>\n<span>call<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Script\/EditorScriptingUtilities.Default__EditorLevelLibrary&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;GetAllLevelActors&quot;<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h5>\u00a0<\/h5>\n<h5>\u83b7\u53d6\u5f53\u524dActor\u7684component<\/h5>\n<p>\u5e93\u6587\u4ef6\u4e3a<code>Engine\/Source\/Runtime\/Engine\/Classes\/GameFramework\/Actor.h<\/code><\/p>\n\n\n\n<pre>\n<span>call<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Game\/SpringLandscape\/Maps\/Overview\/Overview.Overview:PersistentLevel.SkySphere_3&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;K2_GetRootComponent&quot;<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h5>\u00a0<\/h5>\n<h5>Actor\u64cd\u4f5c<\/h5>\n<p>\u8fd9\u90e8\u5206\u4e5f\u53ef\u4ee5\u5728<code>Engine\/Source\/Runtime\/Engine\/Classes\/GameFramework\/Actor.h<\/code>\u4e2d\u67e5\u627e\u5177\u4f53\u4f7f\u7528\u65b9\u6cd5\uff0c\u7565\u5199\u5982\u4e0b\u3002<\/p>\n\n\n\n<pre>\n<span>call<\/span>\n<span>{<\/span>\n<span>    #\u83b7\u53d6\u79fb\u52a8<\/span>\n<span>    &quot;functionName&quot;&quot;GetActorLocation&quot;    <\/span>\n<span><\/span>\n<span>    #\u8bbe\u7f6e\u79fb\u52a8 <\/span>\n<span>    &quot;functionName&quot;:&quot;SetActorLocation&quot;,&quot;parameters&quot; :{&quot;NewPosition&quot;: {&quot;X&quot;: 0,&quot;Y&quot;: 0,&quot;Z&quot;: 0}},&quot;generateTransaction&quot;:true <\/span>\n<span><\/span>\n<span>    #\u83b7\u53d6\u65cb\u8f6c<\/span>\n<span>    &quot;functionName&quot;:&quot;GetActorRotation&quot;     <\/span>\n<span><\/span>\n<span>    #\u8bbe\u7f6e\u65cb\u8f6c<\/span>\n<span>    &quot;functionName&quot;:&quot;SetActorRotation&quot;,&quot;parameters&quot; :{&quot;NewRotation&quot;: {&quot;Roll&quot;: 0,&quot;Pitch&quot;: 0,&quot;Yaw&quot;: 0}},&quot;generateTransaction&quot;:true <\/span>\n<span><\/span>\n<span>    #\u83b7\u53d6\u7f29\u653e<\/span>\n<span>    &quot;functionName&quot;:&quot;GetActorScale3D&quot; <\/span>\n<span><\/span>\n<span>    #\u8bbe\u7f6e\u7f29\u653e<\/span>\n<span>    &quot;functionName&quot;:&quot;SetActorScale3D&quot;,&quot;parameters&quot; :{&quot;NewScale3D&quot;: {&quot;X&quot;: 1,&quot;Y&quot;: 1,&quot;Z&quot;: 1}},&quot;generateTransaction&quot;:true <\/span>\n<span>        <\/span>\n<span><\/span>\n<span>    #\u540c\u65f6\u8bbe\u7f6e\u79fb\u52a8\u548c\u65cb\u8f6c<\/span>\n<span>    &quot;functionName&quot;:&quot;SetActorLocationAndRotation&quot;<\/span>\n<span><\/span>\n<span><\/span>\n<span>    #\u83b7\u53d6\u548c\u8bbe\u7f6e\u76f8\u5bf9\u79fb\u52a8\u65cb\u8f6c\u7f29\u653e<\/span>\n<span>    &quot;functionName&quot;:&quot;SetActorRelativeLocation&quot;<\/span>\n<span>    &quot;functionName&quot;:&quot;SetActorRelativeRotation&quot;<\/span>\n<span>    &quot;functionName&quot;:&quot;SetActorRelativeScale3D&quot;<\/span>\n<span>    &quot;functionName&quot;:&quot;GetActorRelativeLocation&quot;<\/span>\n<span>    &quot;functionName&quot;:&quot;GetActorRelativeRotation&quot;<\/span>\n<span>    &quot;functionName&quot;:&quot;GetActorRelativeScale3D&quot;<\/span>\n<span><\/span>\n<span>    #\u83b7\u53d6\u5230\u67d0\u4f4d\u7f6e\u7684\u8ddd\u79bb<\/span>\n<span>    &quot;functionName&quot;:&quot;GetDistanceTo&quot; <\/span>\n<span><\/span>\n<span>    #\u83b7\u53d6\u901f\u5ea6<\/span>\n<span>    &quot;functionName&quot;:&quot;GetVelocity&quot; <\/span>\n<span><\/span>\n<span>    #\u9690\u85cf<\/span>\n<span>    SetActorHiddenInGame &quot;bNewHidden&quot;: false<\/span>\n<span><\/span>\n<span>    #\u78b0\u649e<\/span>\n<span>    GetActorEnableCollision<\/span>\n<span>    SetActorEnableCollision &quot;bNewActorEnableCollision&quot;: false<\/span>\n<span><\/span>\n<span>    #\u9500\u6bc1<\/span>\n<span>    DestroyActor <\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h5>\u00a0<\/h5>\n<h5>\u83b7\u53d6\u7ec4\u4ef6\u6750\u8d28<\/h5>\n<p>\u5e93\u6587\u4ef6\u4e3a<code>Engine\/Source\/Runtime\/Engine\/Classes\/Components\/StaticMeshComponent.h<\/code><\/p>\n\n\n\n<pre>\n<span>call<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Game\/SpringLandscape\/Maps\/Overview\/Overview.Overview:PersistentLevel.SkySphere_3.StaticMeshComponent0&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;GetMaterial&quot;<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h5>\u00a0<\/h5>\n<h5>\u8bbe\u7f6e\u7ec4\u4ef6\u6750\u8d28<\/h5>\n<p>\u5e93\u6587\u4ef6\u540c\u4e0a<\/p>\n\n\n\n<pre>\n<span>call<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Game\/SpringLandscape\/Maps\/Overview\/Overview2.Overview2:PersistentLevel.Sky_Sphere.StaticMeshComponent0&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;SetMaterial&quot;,<\/span>\n<span>    &quot;parameters&quot;:{<\/span>\n<span>        &quot;ElementIndex&quot;:0,<\/span>\n<span>        &quot;Material&quot;:&quot;\/Game\/SpringLandscape\/Meshes\/Background\/Materials\/MI_Background.MI_Background&quot;<\/span>\n<span>    },<\/span>\n<span>    &quot;generateTransaction&quot;:true<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h5>\u00a0<\/h5>\n<h5>\u66f4\u6539\u8d34\u56fe<\/h5>\n<p>\u901a\u8fc7<code> :<\/code> \u53ef\u4ee5\u8bbf\u95ee\u5230\u6750\u8d28\u5185\u90e8\u7684\u8d34\u56fe\u7b49\u8282\u70b9<\/p>\n\n\n\n<pre>\n<span>property<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Game\/SpringLandscape\/Meshes\/Sky\/Materials\/test.test:MaterialExpressionTextureSample_0&quot;,<\/span>\n<span>    &quot;access&quot;:&quot;WRITE_TRANSACTION_ACCESS&quot;,<\/span>\n<span>    &quot;propertyName&quot;:&quot;Texture&quot;,<\/span>\n<span>    &quot;propertyValue&quot;: {<\/span>\n<span>        &quot;Texture&quot;:&quot;\/Game\/StarterContent\/Textures\/T_Wood_Oak_D.T_Wood_Oak_D&quot;<\/span>\n<span>    }<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h5>\u00a0<\/h5>\n<h5>\u83b7\u53d6\u57fa\u7840\u6750\u8d28<\/h5>\n<p>\u5e93\u6587\u4ef6\u4e3a<code>Engine\/Source\/Runtime\/Engine\/Classes\/Materials\/MaterialInterface.h<\/code><\/p>\n\n\n\n<pre>\n<span>call<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Game\/SpringLandscape\/Meshes\/Sky\/Materials\/MI_Sky.MI_Sky&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;GetBaseMaterial&quot;<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h5>\u00a0<\/h5>\n<h5>\u83b7\u53d6\u5f53\u524d\u89c6\u89d2<\/h5>\n<p>\u5e93\u6587\u4ef6\u4e3a<code>Engine\/Plugins\/Editor\/EditorScriptingUtilities\/Source\/EditorScriptingUtilities\/Public\/EditorLevelLibrary.h<\/code><\/p>\n\n\n\n<pre>\n<span>call<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Script\/EditorScriptingUtilities.Default__EditorLevelLibrary&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;GetLevelViewportCameraInfo&quot;<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h5>\u00a0<\/h5>\n<h5>\u8bbe\u7f6e\u5f53\u524d\u89c6\u89d2<\/h5>\n<p>\u5e93\u6587\u4ef6\u540c\u4e0a<\/p>\n\n\n\n<pre>\n<span>call<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Script\/EditorScriptingUtilities.Default__EditorLevelLibrary&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;SetLevelViewportCameraInfo&quot;,<\/span>\n<span>    &quot;parameters&quot;:{<\/span>\n<span>        &quot;CameraLocation&quot;: {<\/span>\n<span>            &quot;X&quot;: -186347,<\/span>\n<span>            &quot;Y&quot;: -338253,<\/span>\n<span>            &quot;Z&quot;: -18670<\/span>\n<span>        },<\/span>\n<span>        &quot;CameraRotation&quot;: {<\/span>\n<span>            &quot;Pitch&quot;: -6.59973,<\/span>\n<span>            &quot;Yaw&quot;: 113.599,<\/span>\n<span>            &quot;Roll&quot;: 0<\/span>\n<span>        }<\/span>\n<span>    },<\/span>\n<span>    &quot;generateTransaction&quot;:true<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h5>\u00a0<\/h5>\n<h5>\u5217\u51fa\u8def\u5f84\u4e0b\u7684\u8d44\u4ea7\uff08uasset\uff09<\/h5>\n<p>\u5e93\u6587\u4ef6\u4e3a<code>Engine\/Plugins\/Editor\/EditorScriptingUtilities\/Source\/EditorScriptingUtilities\/Public\/EditorAssetLibrary.h<\/code><\/p>\n\n\n\n<pre>\n<span>call<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Script\/EditorScriptingUtilities.Default__EditorAssetLibrary&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;ListAssets&quot;,<\/span>\n<span>    &quot;parameters&quot;:{<\/span>\n<span>        &quot;DirectoryPath&quot;:&quot;\/Game\/SpringLandscape\/Meshes\/Sky&quot;,<\/span>\n<span>        &quot;bRecursive&quot;:true,<\/span>\n<span>        &quot;bIncludeFolder&quot;:false<\/span>\n<span>    }<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h5>\u00a0<\/h5>\n<h5>\u67e5\u8be2\u67d0\u4e2a\u8d44\u4ea7\u7684\u8be6\u7ec6\u4fe1\u606f<\/h5>\n<p>\u5e93\u6587\u4ef6\u540c\u4e0a<\/p>\n\n\n\n<pre>\n<span>call<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Script\/EditorScriptingUtilities.Default__EditorAssetLibrary&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;FindAssetData&quot;,<\/span>\n<span>    &quot;parameters&quot;:{<\/span>\n<span>        &quot;AssetPath&quot;:&quot;\/Game\/SpringLandscape\/Meshes\/Sky\/SM_Sphere&quot;<\/span>\n<span>    }<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h5>\u00a0<\/h5>\n<h5>\u706f\u5149\u7ec4\u4ef6\u64cd\u4f5c<\/h5>\n<p>\u5e93\u6587\u4ef6\u4e3a<code>Engine\/Source\/Runtime\/Engine\/Classes\/Components\/LightComponent.h<\/code><\/p>\n\n\n\n<pre>\n<span>call<\/span>\n<span>{<\/span>\n<span>    #\u8bbe\u7f6e\u4eae\u5ea6<\/span>\n<span>    SetIntensity(float NewIntensity)<\/span>\n<span>    #\u8bbe\u7f6e\u95f4\u63a5\u7167\u660e\u4eae\u5ea6<\/span>\n<span>    SetIndirectLightingIntensity(float NewIntensity)<\/span>\n<span>    #\u8bbe\u7f6e\u706f\u5149\u989c\u8272<\/span>\n<span>    SetLightColor(FLinearColor NewLightColor, bool bSRGB = true)<\/span>\n<span>    #\u8bbe\u7f6e\u8272\u6e29<\/span>\n<span>    SetTemperature(float NewTemperature)<\/span>\n<span>    #\u8bbe\u7f6e\u8f89\u5149<\/span>\n<span>    SetTransmission(bool bNewValue)<\/span>\n<span>    #\u8bbe\u7f6eIES\u5149\u57df<\/span>\n<span>    SetIESTexture(UTextureLightProfile* NewValue);<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<h5>\u00a0<\/h5>\n<h5>\u5c06texture\u8d44\u4ea7\u5bfc\u51fa\u4e3ahdr<\/h5>\n<p>\u5e93\u6587\u4ef6\u4e3a<code>Engine\/Source\/Runtime\/Engine\/Classes\/Kismet\/KismetRenderingLibrary.h<\/code><\/p>\n\n\n\n<pre>\n<span>call<\/span>\n<span>{<\/span>\n<span>    &quot;objectPath&quot; :&quot;\/Script\/engine.Default__KismetRenderingLibrary&quot;,<\/span>\n<span>    &quot;functionName&quot;:&quot;ExportTexture2D&quot;,<\/span>\n<span>    &quot;parameters&quot;:{<\/span>\n<span>        &quot;WorldContextObject&quot;:&quot;\/Game\/SpringLandscape\/Maps\/Overview\/Overview.Overview&quot;,<\/span>\n<span>        &quot;Texture&quot;:&quot;\/Game\/SpringLandscape\/Meshes\/Sky\/Textures\/T_Sky_01_A.T_Sky_01_A&quot;,<\/span>\n<span>        &quot;FilePath&quot;:&quot;C:\/&quot;,<\/span>\n<span>        &quot;FileName&quot;:&quot;test.hdr&quot;<\/span>\n<span>    }<\/span>\n<span>}<\/span>\n<\/pre>\n\n\n\n<p>\u5176\u4ed6\u5e38\u7528\u7684\u5e93\u6587\u4ef6\u53ca\u5305\u542b\u529f\u80fd\u5982\u4e0b\uff0c\u672a\u5b8c\u5168\u6d4b\u8bd5\uff1a<\/p>\n\n\n\n<pre>\n<span>#load\u3001deleteLoaded\u3001doesExist\u3001rename\u3001save\u3001checkout\u3001duplicate\u3001delete\u3001metadata<\/span>\n<span>Engine\/Plugins\/Editor\/EditorScriptingUtilities\/Source\/EditorScriptingUtilities\/Public\/EditorAssetLibrary.h<\/span>\n<span><\/span>\n<span>#EditorPlaySimulate\u3001select\u3001spawnActor\u3001NewLevel\u3001loadLevel\u3001saveLevel\u3001replaceMeshComponentsMaterials<\/span>\n<span>Engine\/Plugins\/Editor\/EditorScriptingUtilities\/Source\/EditorScriptingUtilities\/Public\/EditorLevelLibrary.h<\/span>\n<span><\/span>\n<span>#CurrentLanguage\u3001CurrentLocale<\/span>\n<span>Engine\/Source\/Runtime\/Engine\/Classes\/Kismet\/KismetInternationalizationLibrary.h<\/span>\n<span><\/span>\n<span>#ImportFileAsTexture2D<\/span>\n<span>Engine\/Source\/Runtime\/Engine\/Classes\/Kismet\/KismetRenderingLibrary.h<\/span>\n<span><\/span>\n<span>#spawnObject\u3001openLevel\u3001SetGamePaused\u3001isGamePaused\u3001playSound2D\u3001savegame\u3001GetPlatformName\u3001SetWorldOriginLocation<\/span>\n<span>Engine\/Source\/Runtime\/Engine\/Classes\/Kismet\/GameplayStatics.h<\/span>\n<span><\/span>\n<span>#ExecuteConsoleCommand\u3001GetConsoleVariableBoolValue\u3001QuitGame\u3001QuitEditor\u3001SetIntPropertyByName\u3001LaunchURL\u3001SnapshotObject<\/span>\n<span>Engine\/Source\/Runtime\/Engine\/Classes\/Kismet\/KismetSystemLibrary.h<\/span>\n<\/pre>\n\n\n\n<h1>\u00a0<\/h1>\n<h1 style=\"text-align: center;\">\u603b\u7ed3<\/h1>\n<p>\u4e0a\u9762\u53ea\u5217\u4e3e\u4e86\u6bd4\u8f83\u5e38\u7528\u7684\u90e8\u5206\u51fd\u6570\uff0c\u53ef\u4ee5\u770b\u51faWebRemoteControl\u6a21\u5757\u7684\u529f\u80fd\u786e\u5b9e\u662f\u6781\u4e3a\u5f3a\u5927\u7684\uff0c\u7ecf\u8fc7\u5f00\u53d1\u8005\u5c01\u88c5\u6210\u5e26\u56fe\u5f62\u754c\u9762\u7684\u5de5\u5177\u540e\uff0c\u80fd\u5e7f\u6cdb\u5e94\u7528\u5728\u6e38\u620f\u8c03\u8bd5\u548c\u865a\u62df\u5236\u7247\u7b49\u9886\u57df\u3002<\/p>\n<p>\u00a0<\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u7edd\u5bf9\u4e0d\u8981\u4e3a\u4f60\u7684\u4e00\u8f88\u5b50\u505a\u597d\u8ba1\u5212\uff0c<\/p>\n<p>\u56e0\u4e3a\u4eba\u7684\u53d8\u5316\u5728\u4e24\u4e09\u5e74\u5185\u90fd\u662f\u5de8\u5927\u7684\uff0c<\/p>\n<p>\u800c\u4e14\u65f6\u523b\u4f1a\u4ea7\u751f\u65b0\u7684\u60f3\u6cd5\uff0c<\/p>\n<p>\u4f60\u771f\u6b63\u53ef\u4ee5\u505a\u5230\u7684\u662f\uff0c<\/p>\n<p>\u60f3\u597d\u73b0\u5728\u8981\u505a\u4ec0\u4e48\u3002<\/p>\n<p style=\"text-align: right;\">\u300a\u4f18\u79c0\u7684\u7ef5\u7f8a\u300b<\/p>\n<p style=\"text-align: right;\">\u2014\u2014\u5a01\u5ec9\u00b7\u5fb7\u96f7\u8c22\u7ef4\u5947<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u529f\u80fd\u4ecb\u7ecd \u4eceUnreal Engine 4.23\u7248\u672c\u5f00\u59cb\uff0c\u65b0\u589e\u4e86WebRemoteControl\u6a21\u5757\uff0c\u5728\u5f15\u64ce\u4e2d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1828,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[43,14,45,26],"_links":{"self":[{"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/posts\/1811"}],"collection":[{"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1811"}],"version-history":[{"count":0,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/posts\/1811\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=\/wp\/v2\/media\/1828"}],"wp:attachment":[{"href":"https:\/\/www.yumefx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yumefx.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}