{"id":618,"date":"2022-04-21T17:27:14","date_gmt":"2022-04-21T09:27:14","guid":{"rendered":"https:\/\/blog.mega-zone.org\/?p=618"},"modified":"2023-09-02T08:44:08","modified_gmt":"2023-09-02T00:44:08","slug":"unity%e7%9a%84%e6%96%b0feature","status":"publish","type":"post","link":"https:\/\/blog.mega-zone.org\/?p=618","title":{"rendered":"Unity\u7684\u201c\u65b0\u201dfeature"},"content":{"rendered":"\n<p>\u52a0\u5f15\u53f7\u662f\u56e0\u4e3a\u6211\u4ece2018\u5347\u7ea7\uff0c\u5f88\u591afeature\u90fd\u51fa\u6765\u597d\u4e45\u4e86\uff0c\u53ea\u662f\u5bf9\u6211\u6765\u8bf4\u201c\u65b0\u201d\u4e00\u4e9b\u3002\u800c\u4e14\u5f88\u591afeatures\u5176\u4ed6\u5f15\u64ce\u65e9\u5c31\u6709\u4e86\uff0c\u5728Unity\u7684\u8303\u7574\u5185\u7b97\u662f\u201c\u65b0\u201d\u7684\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u8bb0\u5f55\u4e00\u4e9b\u81ea\u5df1\u89c9\u5f97\u6709\u7528\u7684\u65b0\u73a9\u610f\u513f\u3002<\/p>\n\n\n\n<p>U<strong>nity 2019\uff1a<\/strong><\/p>\n\n\n\n<p>GC\u7ec8\u4e8e\u4f1a\u5206\u6563\u5728\u4e0d\u540c\u7684frame\u91cc\u9762\u5904\u7406\u4e86\u3002https:\/\/blogs.unity3d.com\/2018\/11\/26\/feature-preview-incremental-garbage-collection\/<\/p>\n\n\n\n<p>\u4f7f\u7528[GenerateAuthoringComponent]\u81ea\u52a8\u751f\u6210\u5bf9\u5e94\u7684property\u4ee3\u7801\uff0c\u66f4\u597d\u7684\u652f\u6301\u9762\u5411\u6570\u636e\u7684\u7a0b\u5e8f\u8bbe\u8ba1\u3002<\/p>\n\n\n\n<p>\u5e8f\u5217\u5316\u7ec8\u4e8e\u652f\u6301\u591a\u6001\uff0c\u53ef\u4ee5\u6b63\u786e\u7684\u5904\u7406null\u548c\u5b50\u7c7b\u3002\u9700\u8981\u663e\u793a\u6807\u8bb0[SerializeReference]\u3002<\/p>\n\n\n\n<p>\u53ef\u4ee5\u914d\u7f6e\u8fdb\u5165Playe Mode\u4e0d\u9700\u8981\u91cd\u65b0\u52a0\u8f7d\u4ee3\u7801\u3002<\/p>\n\n\n\n<p><strong>Unity 2020\uff1a<\/strong><\/p>\n\n\n\n<p>\u72ec\u7acb\u7684Profiler\uff0c\u53ef\u4ee5\u901a\u8fc7Flow Event\u5206\u6790jobs\uff0c\u907f\u514dProfiler\u81ea\u8eab\u5f71\u54cd\u5206\u6790\u7ed3\u679c\u3002<\/p>\n\n\n\n<p>\u663e\u793a\u4f7f\u7528debug\u548cplay\u4e24\u79cd\u8fd0\u884c\u6a21\u5f0f\u3002<\/p>\n\n\n\n<p>\u901a\u8fc7-deterministic\uff0c\u907f\u514d\u91cd\u590d\u7f16\u8bd1\u6ca1\u6709\u53d8\u5316\u7684\u4ee3\u7801\uff08\u4ee5\u524d\u5c45\u7136\u4e0d\u662f\u8fd9\u6837\uff1f\uff09<\/p>\n\n\n\n<p>\u66f4\u52a0\u7a33\u5b9a\u7684Time.deltaTime\uff08\u9700\u8981DX11+\uff09<\/p>\n\n\n\n<p>\u5bfc\u5165\u51fa\u73b0\u9519\u8bef\uff0c\u53ef\u4ee5\u5148\u5728\u5b89\u5168\u6a21\u5f0f\u4e2d\u4fee\u6b63\u4ee3\u7801\u7136\u540e\u518d\u7ee7\u7eed\u5bfc\u5165\u3002<\/p>\n\n\n\n<p><strong>Unity 2021:<\/strong><\/p>\n\n\n\n<p>\u53f7\u79f0production-ready\u7684\u6574\u59572d-pipeline\uff0c\u76ee\u6d4b\u52a0\u4e86\u9aa8\u9abc\/\u5149\u7167\/\u7279\u6548\/\u590d\u6742\u5730\u5f62\uff1f<\/p>\n\n\n\n<p>\u5f88\u591aprofiler\u7684\u6539\u8fdb\uff0c\u770b\u6765\u662f\u8003\u8651\u5230\u8bb8\u591aUnity\u6e38\u620f\u6027\u80fd\u60e8\u4e0d\u5fcd\u7779\u3002<\/p>\n\n\n\n<p>\u652f\u6301\u4e86Incremental build\u5206\u5e03\u5f0f\u7f16\u8bd1\uff0c\u771f\u7684\u6709\u9700\u8981\u8fd9\u4e48\u5938\u5f20\u5417\uff1f<\/p>\n\n\n\n<p>\u652f\u6301IL2CPP\u751f\u6210\u66f4\u5c0f\u7684\u7248\u672c\uff0c\u4f46\u662f\u6027\u80fd\u53ef\u80fd\u53d7\u635f\uff0c\u4e0d\u77e5\u9053\u5177\u4f53\u5dee\u5f02\u6709\u591a\u5927\u3002<\/p>\n\n\n\n<p>Addressables\u7684\u63a5\u53e3\u7ec8\u4e8e\u6709\u540c\u6b65\u52a0\u8f7d\u7684API\u4e86\uff08\u4ee5\u524d\u5c45\u7136\u6ca1\u6709\uff09<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u8bb0\u5f55\u4e86\u4e00\u4e9b\u6211\u4e2a\u4eba\u6bd4\u8f83\u5173\u6ce8\u7684\u65b0\u6539\u8fdb\u3002\u5f53\u7136\uff0c\u65b0\u7248\u672c\u80af\u5b9a\u6709\u65b0Bug\uff0c\u8fd9\u4e2a\u662f\u9003\u4e0d\u4e86\u4e86\u3002\u603b\u4f53\u6765\u770b\u8fd9\u4e48\u591a\u5e74\u8fc7\u53bb\u8fd8\u662f\u6709\u5f88\u591a\u503c\u5f97\u4e00\u8bd5\u7684\u4e1c\u897f\uff0c\u5347\u8fd8\u662f\u5f97\u5347\u7ea7\u7684\uff0c2018\u5b9e\u5728\u592a\u8001\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u52a0\u5f15\u53f7\u662f\u56e0\u4e3a\u6211\u4ece2018\u5347\u7ea7\uff0c\u5f88\u591afeature\u90fd\u51fa\u6765\u597d\u4e45\u4e86\uff0c\u53ea\u662f\u5bf9\u6211\u6765\u8bf4\u201c\u65b0\u201d\u4e00\u4e9b\u3002\u800c\u4e14\u5f88\u591afeatures\u5176\u4ed6\u5f15\u64ce\u65e9\u5c31\u6709\u4e86\uff0c\u5728Unity\u7684\u8303\u7574\u5185\u7b97\u662f\u201c\u65b0\u201d\u7684\u3002 \u4ee5\u4e0b\u8bb0\u5f55\u4e00\u4e9b\u81ea\u5df1\u89c9\u5f97\u6709\u7528\u7684\u65b0\u73a9\u610f\u513f\u3002 Unity 2019\uff1a GC\u7ec8\u4e8e\u4f1a\u5206\u6563\u5728\u4e0d\u540c\u7684frame\u91cc\u9762\u5904\u7406\u4e86\u3002https:\/\/blogs.unity3d.com\/2018\/11\/26\/feature-preview-incremental-garbage-collection\/ \u4f7f\u7528[GenerateAuthoringComponent]\u81ea\u52a8\u751f\u6210\u5bf9\u5e94\u7684property\u4ee3\u7801\uff0c\u66f4\u597d\u7684\u652f\u6301\u9762\u5411\u6570\u636e\u7684\u7a0b\u5e8f\u8bbe\u8ba1\u3002 \u5e8f\u5217\u5316\u7ec8\u4e8e\u652f\u6301\u591a\u6001\uff0c\u53ef\u4ee5\u6b63\u786e\u7684\u5904\u7406null\u548c\u5b50\u7c7b\u3002\u9700\u8981\u663e\u793a\u6807\u8bb0[SerializeReference]\u3002 \u53ef\u4ee5\u914d\u7f6e\u8fdb\u5165Playe Mode\u4e0d\u9700\u8981\u91cd\u65b0\u52a0\u8f7d\u4ee3\u7801\u3002 Unity 2020\uff1a \u72ec\u7acb\u7684Profiler\uff0c\u53ef\u4ee5\u901a\u8fc7Flow Event\u5206\u6790jobs\uff0c\u907f\u514dProfiler\u81ea\u8eab\u5f71\u54cd\u5206\u6790\u7ed3\u679c\u3002 \u663e\u793a\u4f7f\u7528debug\u548cplay\u4e24\u79cd\u8fd0\u884c\u6a21\u5f0f\u3002 \u901a\u8fc7-deterministic\uff0c\u907f\u514d\u91cd\u590d\u7f16\u8bd1\u6ca1\u6709\u53d8\u5316\u7684\u4ee3\u7801\uff08\u4ee5\u524d\u5c45\u7136\u4e0d\u662f\u8fd9\u6837\uff1f\uff09 \u66f4\u52a0\u7a33\u5b9a\u7684Time.deltaTime\uff08\u9700\u8981DX11+\uff09 \u5bfc\u5165\u51fa\u73b0\u9519\u8bef\uff0c\u53ef\u4ee5\u5148\u5728\u5b89\u5168\u6a21\u5f0f\u4e2d\u4fee\u6b63\u4ee3\u7801\u7136\u540e\u518d\u7ee7\u7eed\u5bfc\u5165\u3002 Unity 2021: \u53f7\u79f0production-ready\u7684\u6574\u59572d-pipeline\uff0c\u76ee\u6d4b\u52a0\u4e86\u9aa8\u9abc\/\u5149\u7167\/\u7279\u6548\/\u590d\u6742\u5730\u5f62\uff1f \u5f88\u591aprofiler\u7684\u6539\u8fdb\uff0c\u770b\u6765\u662f\u8003\u8651\u5230\u8bb8\u591aUnity\u6e38\u620f\u6027\u80fd\u60e8\u4e0d\u5fcd\u7779\u3002 \u652f\u6301\u4e86Incremental build\u5206\u5e03\u5f0f\u7f16\u8bd1\uff0c\u771f\u7684\u6709\u9700\u8981\u8fd9\u4e48\u5938\u5f20\u5417\uff1f \u652f\u6301IL2CPP\u751f\u6210\u66f4\u5c0f\u7684\u7248\u672c\uff0c\u4f46\u662f\u6027\u80fd\u53ef\u80fd\u53d7\u635f\uff0c\u4e0d\u77e5\u9053\u5177\u4f53\u5dee\u5f02\u6709\u591a\u5927\u3002 Addressables\u7684\u63a5\u53e3\u7ec8\u4e8e\u6709\u540c\u6b65\u52a0\u8f7d\u7684API\u4e86\uff08\u4ee5\u524d\u5c45\u7136\u6ca1\u6709\uff09 \u8bb0\u5f55\u4e86\u4e00\u4e9b\u6211\u4e2a\u4eba\u6bd4\u8f83\u5173\u6ce8\u7684\u65b0\u6539\u8fdb\u3002\u5f53\u7136\uff0c\u65b0\u7248\u672c\u80af\u5b9a\u6709\u65b0Bug\uff0c\u8fd9\u4e2a\u662f\u9003\u4e0d\u4e86\u4e86\u3002\u603b\u4f53\u6765\u770b\u8fd9\u4e48\u591a\u5e74\u8fc7\u53bb\u8fd8\u662f\u6709\u5f88\u591a\u503c\u5f97\u4e00\u8bd5\u7684\u4e1c\u897f\uff0c\u5347\u8fd8\u662f\u5f97\u5347\u7ea7\u7684\uff0c2018\u5b9e\u5728\u592a\u8001\u4e86\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[39],"_links":{"self":[{"href":"https:\/\/blog.mega-zone.org\/index.php?rest_route=\/wp\/v2\/posts\/618"}],"collection":[{"href":"https:\/\/blog.mega-zone.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mega-zone.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mega-zone.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mega-zone.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=618"}],"version-history":[{"count":1,"href":"https:\/\/blog.mega-zone.org\/index.php?rest_route=\/wp\/v2\/posts\/618\/revisions"}],"predecessor-version":[{"id":619,"href":"https:\/\/blog.mega-zone.org\/index.php?rest_route=\/wp\/v2\/posts\/618\/revisions\/619"}],"wp:attachment":[{"href":"https:\/\/blog.mega-zone.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=618"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mega-zone.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=618"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mega-zone.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=618"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}