{"id":5134,"date":"2023-10-07T14:15:03","date_gmt":"2023-10-07T06:15:03","guid":{"rendered":"http:\/\/blog.coolcoding.cc\/?p=5134"},"modified":"2023-10-07T14:15:03","modified_gmt":"2023-10-07T06:15:03","slug":"emmyluaunity-%e8%bf%9e%e6%8e%a5%e6%8b%92%e7%bb%9d%ef%bc%8c%e5%b0%9d%e8%af%95%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=5134","title":{"rendered":"EmmyLua+Unity \u8fde\u63a5\u62d2\u7edd\uff0c\u5c1d\u8bd5\u65b9\u6cd5"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>\u4f7f\u7528Unity+EmmyLua\u8c03\u8bd5Lua\u4ee3\u7801\uff0c\u5076\u73b0\u65e0\u6cd5\u8fde\u63a5\n\n\u8868\u73b0\uff1a\nERROR:: 9988 Connection refused\n\n\u5c1d\u8bd5\u65b9\u6cd51\uff1a\n\u91cd\u542fUnity\uff0c\u5931\u8d25\n\n\u5c1d\u8bd5\u65b9\u6cd52\uff1a\n\u91cd\u542f\u673a\u5668\uff0c\u5931\u8d25\n\n\u5c1d\u8bd5\u65b9\u6cd53\uff1a\n\u91cd\u88c5VSCode\u548cEmmyLua\u63d2\u4ef6\uff0c\u6210\u529f\n\n\u5c1d\u8bd5\u65b9\u6cd54\uff1a\n\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff1a\n\u5c06Lua\u4e2d\u7684Lua\u4ee3\u7801\ndbg.tcpListen('localhost',9988)\n\u4fee\u6539\u4e3a\ndbg.tcpListen('127.0.0.1',9988)\n\n\u4ee5\u53ca.launch.json\u4e2d\uff1a\n        {\n            \"type\": \"emmylua_new\",\n            \"request\": \"launch\",\n            \"name\": \"Lua Connect\",\n            \"host\": \"localhost\",  \/\/ \u4fee\u6539\u4e3a127.0.0.1\n            \"port\": 9988,\n            \"ext\": [\n                \".lua\",\n                \".lua.txt\",\n                \".lua.bytes\"\n            ],\n            \"ideConnectDebugger\": true\n        },\n\u6210\u529f\u3002\n\n\u6b64Bug\u9700\u8981\u63d0\u4ea4EmmyLua\u63d2\u4ef6\u89e3\u51b3\u3002<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","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\/5134"}],"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=5134"}],"version-history":[{"count":1,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/5134\/revisions"}],"predecessor-version":[{"id":5135,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/5134\/revisions\/5135"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}