{"id":1694,"date":"2025-05-03T06:00:15","date_gmt":"2025-05-02T22:00:15","guid":{"rendered":"https:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/"},"modified":"2025-05-03T06:00:15","modified_gmt":"2025-05-02T22:00:15","slug":"unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f","status":"publish","type":"post","link":"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/","title":{"rendered":"Unity 4 3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f"},"content":{"rendered":"<div class=\"article_content clearfix\" id=\"article_content\">\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/kdoc_html_views-1a98987dfd.css\" rel=\"stylesheet\"\/>\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/ck_htmledit_views-704d5b9767.css\" rel=\"stylesheet\"\/>\n<div class=\"markdown_views prism-atelier-sulphurpool-light\" id=\"content_views\">\n  <svg style=\"display: none;\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n   <path d=\"M5,0 0,2.5 5,5z\" id=\"raphael-marker-block\" stroke-linecap=\"round\" style=\"-webkit-tap-highlight-color: rgba(0, 0, 0, 0);\">\n   <\/path>\n  <\/svg><\/p>\n<div class=\"htmledit_views\" id=\"content_views\">\n<div>\n    \u8fd9\u662f\u4e00\u4e2a\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\u3002 \u6559\u7a0b\u6765\u81ea\uff1a<br \/>\n    <a href=\"http:\/\/pixelnest.io\/tutorials\/2d-game-unity\/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><br \/>\n     http:\/\/pixelnest.io\/tutorials\/2d-game-unity\/<br \/>\n    <\/a><br \/>\n    \u4e2d\u6587\u7248\u6559\u7a0b\uff1a<br \/>\n    <a href=\"http:\/\/www.litpo.com\/category\/%E6%98%93%E5%AD%A6%E7%9A%84%E6%95%99%E7%A8%8B\/\" rel=\"nofollow noopener noreferrer\" target=\"_blank\"><br \/>\n     http:\/\/www.litpo.com\/category\/\u6613\u5b66\u7684\u6559\u7a0b\/<br \/>\n    <\/a>\n   <\/div>\n<div>\n    \u6559\u7a0b\u6587\u7ae0\u5df2\u7ecf\u8be6\u7ec6\u5730\u4ecb\u7ecd\u5b9e\u73b0\u8fc7\u7a0b\uff0c\u8fd9\u91cc\u5c31\u4e0d\u518d\u590d\u8ff0\uff0c\u53ea\u505a\u4e00\u4e9b\u7b80\u5355\u7684\u7b14\u8bb0\u8bb0\u5f55\uff0c\u4ee5\u4f9b\u5907\u5fd8\u3002\n   <\/div>\n<div>\n    \n   <\/div>\n<h3>\n    <strong><br \/>\n     1.\u521b\u5efa\u7b2c\u4e00\u4e2a\u573a\u666f<br \/>\n    <\/strong><br \/>\n   <\/h3>\n<div>\n    \u65b0\u5efa\u5de5\u7a0b\u3002\u63a5\u7740\u5728&#8221;<br \/>\n    <strong><br \/>\n     Project<br \/>\n    <\/strong><br \/>\n    &#8220;\u9762\u677f\u4e0a\u521b\u5efa\u5982\u4e0b\u6587\u4ef6\u5939\uff1a<\/p>\n<p>    \u63a5\u7740\u5728&#8221;<br \/>\n    <strong><br \/>\n     Hierarchy<br \/>\n    <\/strong><br \/>\n    &#8220;\u9762\u677f\u4e0a\u521b\u5efa\u591a\u4e2a\u7a7a\u5bf9\u8c61\uff0c\u5f62\u6210\u4ee5\u4e0b\u7ed3\u6784\uff1a<\/p>\n<div>\n     \u8fd9\u4e9b\u7a7a\u5bf9\u8c61\u7684<br \/>\n     <strong><br \/>\n      Position<br \/>\n     <\/strong><br \/>\n     \u4fdd\u6301\u4e3a(0, 0, 0)\u5373\u53ef\u3002\u4fdd\u5b58\u573a\u666f\uff0c\u540d\u79f0\u4e3a&#8221;<br \/>\n     <strong><br \/>\n      Stage1<br \/>\n     <\/strong><br \/>\n     &#8220;\u3002\n    <\/div>\n<h3>\n     <strong><br \/>\n      2.\u6dfb\u52a0\u663e\u793a\u80cc\u666f<br \/>\n     <\/strong><br \/>\n    <\/h3>\n<div>\n     \u5c06\u80cc\u666f\u56fe\u7247\u653e\u5165&#8221;<br \/>\n     <strong><br \/>\n      Textures<br \/>\n     <\/strong><br \/>\n     &#8220;\u6587\u4ef6\u5939\uff0c\u786e\u8ba4\u8fd9\u5f20\u56fe\u7247\u7684\u7eb9\u7406\u7c7b\u578b\uff0c\u5373&#8221;<br \/>\n     <strong><br \/>\n      Texture Type<br \/>\n     <\/strong><br \/>\n     &#8220;\u5c5e\u6027\u4e3a&#8221; Sprite&#8221;\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p>     \u5728\u573a\u666f\u4e2d\u6dfb\u52a0\u4e00\u4e2aSprite\u6e38\u620f\u5bf9\u8c61\uff0c\u8bbe\u7f6e\u5176&#8221;<br \/>\n     <strong><br \/>\n      Sprite<br \/>\n     <\/strong><br \/>\n     &#8220;\u5c5e\u6027\u4e3a\u521a\u624d\u5bfc\u5165\u7684\u80cc\u666f\u56fe\u7247\u3002\u91cd\u547d\u540d\u8fd9\u4e2a\u5bf9\u8c61\u4e3a&#8221;<br \/>\n     <strong><br \/>\n      Background1<br \/>\n     <\/strong><br \/>\n     &#8220;\uff0c\u5c06\u5176\u79fb\u52a8\u5230&#8221;<br \/>\n     <strong><br \/>\n      Level -&gt; 0 &#8211; Background<br \/>\n     <\/strong><br \/>\n     &#8220;\u91cc\u9762\uff0c\u8bbe\u7f6e\u5176&#8221;<br \/>\n     <strong><br \/>\n      Position<br \/>\n     <\/strong><br \/>\n     &#8220;\u4e3a (0,\u00a00, 0)\u3002\u63a5\u7740\u6dfb\u52a0\u80cc\u666f\u5143\u7d20\u3002\u5bfc\u5165\u5e73\u53f0\u56fe\u7247\u5230 &#8221;<br \/>\n     <strong><br \/>\n      Textures<br \/>\n     <\/strong><br \/>\n     &#8220;\u6587\u4ef6\u5939\uff0c\u9009\u4e2d&#8221;<br \/>\n     <strong><br \/>\n      platforms<br \/>\n     <\/strong><br \/>\n     &#8220;\u56fe\u7247\uff0c\u8bbe\u7f6e\u5176&#8221;<br \/>\n     <strong><br \/>\n      Sprite\u00a0Mode<br \/>\n     <\/strong><br \/>\n     &#8220;\u4e3a&#8221; Multiple&#8221;\uff0c\u7136\u540e\u70b9\u51fb&#8221;<br \/>\n     <strong><br \/>\n      Sprite Editor<br \/>\n     <\/strong><br \/>\n     &#8220;\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p><\/div>\n<div>\n     \u5728\u5f39\u51fa\u7684&#8221;<br \/>\n     <strong><br \/>\n      Sprite Editor<br \/>\n     <\/strong><br \/>\n     &#8220;\u7a97\u53e3\u4e2d\uff0c\u8fdb\u884c\u7ed8\u5236\u6bcf\u4e2a\u5e73\u53f0\u7684\u5305\u56f4\u77e9\u5f62\uff0c\u4ee5\u4fbf\u5c06\u7eb9\u7406\u5206\u5272\u6210\u66f4\u5c0f\u7684\u90e8\u5206\u3002\u7136\u540e\u5206\u522b\u547d\u540d\u4e3a&#8221;<br \/>\n     <strong><br \/>\n      platform1<br \/>\n     <\/strong><br \/>\n     &#8220;\u548c&#8221;<br \/>\n     <strong><br \/>\n      platform2<br \/>\n     <\/strong><br \/>\n     &#8220;\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p>     \u521b\u5efa\u4e00\u4e2a\u65b0\u7684 Sprite\u6e38\u620f\u5bf9\u8c61\uff0c\u8bbe\u7f6e\u5176&#8221;<br \/>\n     <strong><br \/>\n      Sprite<br \/>\n     <\/strong><br \/>\n     &#8220;\u5c5e\u6027\u4e3a&#8221; platform1&#8243;\u3002\u518d\u5728\u521b\u5efa\u65b0 Sprite\u5bf9\u8c61\uff0c \u8bbe\u7f6e\u5176&#8221;<br \/>\n     <strong><br \/>\n      Sprite<br \/>\n     <\/strong><br \/>\n     &#8220;\u5c5e\u6027\u4e3a&#8221; platform2&#8243;\u3002\u5c06\u5b83\u4eec\u653e\u7f6e\u5230&#8221;<br \/>\n     <strong><br \/>\n      1\u00a0&#8211; Middleground<br \/>\n     <\/strong><br \/>\n     &#8220;\u5bf9\u8c61\u91cc\uff0c\u5e76\u4e14\u786e\u8ba4\u5b83\u4eec\u7684Z\u5750\u6807\u4e3a0\u3002\u5c06\u8fd9\u4e24\u4e2a\u5bf9\u8c61\u4ece&#8221;<br \/>\n     <strong><br \/>\n      Hierarchy<br \/>\n     <\/strong><br \/>\n     &#8220;\u9762\u677f\u62d6\u52a8\u5230&#8221;<br \/>\n     <strong><br \/>\n      Project<br \/>\n     <\/strong><br \/>\n     &#8220;\u9762\u677f\u4e0b\u7684&#8221;<br \/>\n     <strong><br \/>\n      Prefabs<br \/>\n     <\/strong><br \/>\n     &#8220;\u6587\u4ef6\u5939\uff0c\u4fdd\u5b58\u6210\u9884\u5236\u5bf9\u8c61\u3002\u63a5\u7740\uff0c\u4e3a\u4e86\u907f\u514d\u663e\u793a\u987a\u5e8f\u95ee\u9898\uff0c\u4fee\u6539\u4e0b\u6e38\u620f\u5bf9\u8c61\u7684Z\u5750\u6807\uff0c\u5982\u4e0b\u6240\u793a\uff1a<br \/>\n     <\/p>\n<table cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td>\n         <strong><br \/>\n          Layer<br \/>\n         <\/strong>\n        <\/td>\n<td>\n         <strong><br \/>\n          Z Position<br \/>\n         <\/strong>\n        <\/td>\n<\/tr>\n<tr>\n<td>\n         0 &#8211; Background\n        <\/td>\n<td>\n         10\n        <\/td>\n<\/tr>\n<tr>\n<td>\n         1 &#8211; Middleground\n        <\/td>\n<td>\n         5\n        <\/td>\n<\/tr>\n<tr>\n<td>\n         2 &#8211; Foreground\n        <\/td>\n<td>\n         0\n        <\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<\/p><\/div>\n<div>\n    \u6b64\u65f6\uff0c\u70b9\u51fb&#8221;<br \/>\n    <strong><br \/>\n     Scene<br \/>\n    <\/strong><br \/>\n    &#8220;\u9762\u677f\u4e0a\u76842D\u52303D\u89c6\u56fe\u5207\u6362\uff0c\u53ef\u4ee5\u6e05\u695a\u770b\u5230\u5c42\u6b21\uff1a<\/p><\/div>\n<div>\n<h3>\n     <strong><br \/>\n      3.\u521b\u5efa\u4e3b\u89d2\u548c\u654c\u4eba<br \/>\n     <\/strong><br \/>\n    <\/h3>\n<\/p><\/div>\n<div>\n    \u5bfc\u5165\u4e3b\u89d2\u56fe\u7247 \u5230 &#8221;<br \/>\n    <strong><br \/>\n     Textures<br \/>\n    <\/strong><br \/>\n    &#8220;\u6587\u4ef6\u5939\uff0c\u521b\u5efa\u4e00\u4e2aSprite\u6e38\u620f\u5bf9\u8c61\uff0c\u547d\u540d\u4e3a&#8221;<br \/>\n    <strong><br \/>\n     Player<br \/>\n    <\/strong><br \/>\n    &#8220;\uff0c \u8bbe\u7f6e\u5176&#8221;<br \/>\n    <strong><br \/>\n     Sprite<br \/>\n    <\/strong><br \/>\n    &#8220;\u5c5e\u6027\u4e3a\u521a\u624d\u5bfc\u5165\u7684\u4e3b\u89d2\u56fe\u7247\u3002\u5c06\u6b64\u5bf9\u8c61\u653e\u5165&#8221;<br \/>\n    <strong><br \/>\n     2\u00a0&#8211; Foreground<br \/>\n    <\/strong><br \/>\n    &#8220;\u5c42\u91cc\uff0c\u8bbe\u7f6e\u5176<br \/>\n    <strong><br \/>\n     Scale<br \/>\n    <\/strong><br \/>\n    \u4e3a (0.2, 0.2, 1)\u3002\u63a5\u7740\uff0c\u4e3a\u4e3b\u89d2\u6dfb\u52a0\u76d2\u78b0\u649e\u4f53\u7ec4\u4ef6\uff0c\u70b9\u51fb&#8221;<br \/>\n    <strong><br \/>\n     Add\u00a0Component<br \/>\n    <\/strong><br \/>\n    &#8220;\u6309\u94ae\uff0c\u9009\u62e9&#8221;<br \/>\n    <strong><br \/>\n     Box Collider 2D<br \/>\n    <\/strong><br \/>\n    &#8220;\uff0c\u8bbe\u7f6e\u5176<br \/>\n    <strong><br \/>\n     Size<br \/>\n    <\/strong><br \/>\n    \u4e3a (10,\u00a010)\uff0c\u867d\u7136\u8fd9\u8fd8\u662f\u5927\u4e8e\u5b9e\u9645\u7684\u533a\u57df\uff0c\u4f46\u5df2\u6bd4\u56fe\u7247\u5c0f\u591a\u4e86\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p><\/div>\n<div>\n    \uff08\u53ef\u4ee5\u901a\u8fc7\u6309\u4f4fShift\u952e\uff0c\u6765\u8c03\u6574\u7eff\u8272\u78b0\u649e\u8303\u56f4\uff09\n   <\/div>\n<div>\n    \u63a5\u7740\uff0c\u518d\u4e3a\u4e3b\u89d2\u5bf9\u8c61\u6dfb\u52a0&#8221;<br \/>\n    <strong><br \/>\n     Rigidbody 2D<br \/>\n    <\/strong><br \/>\n    &#8220;\u521a\u4f53\u7ec4\u4ef6\uff0c\u73b0\u5728\u8fd0\u884c\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u7ed3\u679c\uff1a<\/p>\n<p>    \u53ef\u4ee5\u770b\u5230\u4e3b\u89d2\u5f80\u4e0b\u843d\u4e86\uff0c\u8fd9\u662f\u56e0\u4e3a\u521a\u4f53\u5e26\u6709\u91cd\u529b\uff0c\u4f46\u5728\u8fd9\u4e2a\u6e38\u620f\u4e0d\u9700\u8981\u7528\u5230\uff0c\u5c06&#8221;<br \/>\n    <strong><br \/>\n     Gravity Scale<br \/>\n    <\/strong><br \/>\n    &#8220;\u5c5e\u6027\u8bbe\u4e3a0\u5373\u53ef\u3002\u53e6\u5916\uff0c\u4e0d\u60f3\u56e0\u4e3a\u7269\u7406\u800c\u5f15\u8d77\u7684\u4e3b\u89d2\u65cb\u8f6c\uff0c\u5219\u5c06&#8221;<br \/>\n    <strong><br \/>\n     Fixed Angles<br \/>\n    <\/strong><br \/>\n    &#8220;\u5c5e\u6027\u52fe\u9009\u4e0a\u3002\u5b8c\u6574\u7684\u8bbe\u7f6e\u5982\u4e0b\u56fe\u6240\u793a\uff1a<br \/>\n    <\/p>\n<div>\n     <br \/>\n     \u5f00\u59cb\u51c6\u5907\u8ba9\u4e3b\u89d2\u79fb\u52a8\u3002\u5728&#8221;<br \/>\n     <strong><br \/>\n      Scripts<br \/>\n     <\/strong><br \/>\n     &#8220;\u6587\u4ef6\u5939\u91cc\uff0c\u521b\u5efa\u4e00\u4e2aC#\u811a\u672c\uff0c\u540d\u79f0\u4e3a&#8221;<br \/>\n     <strong><br \/>\n      PlayerScript<br \/>\n     <\/strong><br \/>\n     &#8220;\uff0c\u5b9e\u73b0\u8ba9\u65b9\u5411\u952e\u79fb\u52a8\u4e3b\u89d2\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<div>\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td>\n<div>\n           1<br \/>\n           <br \/>\n           2<br \/>\n           <br \/>\n           3<br \/>\n           <br \/>\n           4<br \/>\n           <br \/>\n           5<br \/>\n           <br \/>\n           6<br \/>\n           <br \/>\n           7<br \/>\n           <br \/>\n           8<br \/>\n           <br \/>\n           9<br \/>\n           <br \/>\n           10<br \/>\n           <br \/>\n           11<br \/>\n           <br \/>\n           12<br \/>\n           <br \/>\n           13<br \/>\n           <br \/>\n           14<br \/>\n           <br \/>\n           15<br \/>\n           <br \/>\n           16<br \/>\n           <br \/>\n           17<br \/>\n           <br \/>\n           18<br \/>\n           <br \/>\n           19<br \/>\n           <br \/>\n           20<br \/>\n           <br \/>\n           21<br \/>\n           <br \/>\n           22<br \/>\n           <br \/>\n           23<br \/>\n           <br \/>\n           24<br \/>\n           <br \/>\n           25<br \/>\n           <br \/>\n           26<br \/>\n           <br \/>\n           27<br \/>\n           <br \/>\n           28<br \/>\n           <br \/>\n           29<br \/>\n           <br \/>\n           30<br \/>\n           <br \/>\n           31<br \/>\n           <br \/>\n           32<br \/>\n           <br \/>\n           33<br \/>\n           <br \/>\n           34<br \/>\n           \n          <\/div>\n<\/td>\n<td>\n<div>\n          <\/div>\n<\/td>\n<td>\n<div>\n           using\u00a0UnityEngine;<\/p>\n<p>           \/\/\/\u00a0&lt;summary&gt;<br \/>\n           <br \/>\n           \/\/\/\u00a0Player\u00a0controller\u00a0and\u00a0behavior<br \/>\n           <br \/>\n           \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n           <br \/>\n           public\u00a0 class\u00a0PlayerScript\u00a0:\u00a0MonoBehaviour<br \/>\n           <br \/>\n           {<br \/>\n           <br \/>\n           \/\/\/\u00a0&lt;summary&gt;<br \/>\n           <br \/>\n           \/\/\/\u00a01\u00a0&#8211;\u00a0The\u00a0speed\u00a0of\u00a0the\u00a0ship<br \/>\n           <br \/>\n           \/\/\/\u00a0&lt;\/summary&gt;<br \/>\n           <br \/>\n           public\u00a0Vector2\u00a0speed\u00a0=\u00a0 new\u00a0Vector2( 50,\u00a0 50);<\/p>\n<p>           \/\/\u00a02\u00a0&#8211;\u00a0Store\u00a0the\u00a0movement<br \/>\n           <br \/>\n           private\u00a0Vector2\u00a0moveme\n          <\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/editerView\/markdown_views-a5d25dd831.css\" rel=\"stylesheet\"\/>\n <link href=\"https:\/\/csdnimg.cn\/release\/blogv2\/dist\/mdeditor\/css\/style-e504d6a974.css\" rel=\"stylesheet\"\/>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u662f\u4e00\u4e2a\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\u3002 \u6559\u7a0b\u6765\u81ea\uff1a http:\/\/pixelnest.io\/tutorials\/2d-game [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":215,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-1694","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-23"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Unity 4 3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-\u5236\u4f5c\u4e00\u4e2a2d\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Unity 4 3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"og:description\" content=\"\u8fd9\u662f\u4e00\u4e2a\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\u3002 \u6559\u7a0b\u6765\u81ea\uff1a http:\/\/pixelnest.io\/tutorials\/2d-game [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-\u5236\u4f5c\u4e00\u4e2a2d\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-02T22:00:15+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"260\" \/>\n\t<meta property=\"og:image:height\" content=\"180\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin@wunen\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin@wunen\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\"},\"author\":{\"name\":\"admin@wunen\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\"},\"headline\":\"Unity 4 3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\",\"datePublished\":\"2025-05-02T22:00:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\"},\"wordCount\":128,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.wunen.com\/#organization\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"articleSection\":[\"\u5c04\u51fb\u6e38\u620f\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\",\"url\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\",\"name\":\"Unity 4 3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"isPartOf\":{\"@id\":\"https:\/\/www.wunen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"datePublished\":\"2025-05-02T22:00:15+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"width\":260,\"height\":180},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wunen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Unity 4 3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wunen.com\/#website\",\"url\":\"https:\/\/www.wunen.com\/\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"description\":\"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9\",\"publisher\":{\"@id\":\"https:\/\/www.wunen.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wunen.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.wunen.com\/#organization\",\"name\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"url\":\"https:\/\/www.wunen.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"contentUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png\",\"width\":1024,\"height\":1024,\"caption\":\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\"},\"image\":{\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\",\"name\":\"admin@wunen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g\",\"caption\":\"admin@wunen\"},\"sameAs\":[\"http:\/\/www.wunen.com\"],\"url\":\"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Unity 4 3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-\u5236\u4f5c\u4e00\u4e2a2d\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\/","og_locale":"zh_CN","og_type":"article","og_title":"Unity 4 3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","og_description":"\u8fd9\u662f\u4e00\u4e2a\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\u3002 \u6559\u7a0b\u6765\u81ea\uff1a http:\/\/pixelnest.io\/tutorials\/2d-game [&hellip;]","og_url":"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-\u5236\u4f5c\u4e00\u4e2a2d\u6a2a\u7248\u5c04\u51fb\u6e38\u620f\/","og_site_name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","article_published_time":"2025-05-02T22:00:15+00:00","og_image":[{"width":260,"height":180,"url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","type":"image\/jpeg"}],"author":"admin@wunen","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin@wunen","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#article","isPartOf":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/"},"author":{"name":"admin@wunen","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8"},"headline":"Unity 4 3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f","datePublished":"2025-05-02T22:00:15+00:00","mainEntityOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/"},"wordCount":128,"commentCount":0,"publisher":{"@id":"https:\/\/www.wunen.com\/#organization"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","articleSection":["\u5c04\u51fb\u6e38\u620f"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/","url":"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/","name":"Unity 4 3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","isPartOf":{"@id":"https:\/\/www.wunen.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","datePublished":"2025-05-02T22:00:15+00:00","breadcrumb":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#primaryimage","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","width":260,"height":180},{"@type":"BreadcrumbList","@id":"http:\/\/www.wunen.com\/index.php\/2025\/05\/03\/unity-4-3-%e5%88%b6%e4%bd%9c%e4%b8%80%e4%b8%aa2d%e6%a8%aa%e7%89%88%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wunen.com\/"},{"@type":"ListItem","position":2,"name":"Unity 4 3 \u5236\u4f5c\u4e00\u4e2a2D\u6a2a\u7248\u5c04\u51fb\u6e38\u620f"}]},{"@type":"WebSite","@id":"https:\/\/www.wunen.com\/#website","url":"https:\/\/www.wunen.com\/","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","description":"\u8f6f\u4ef6\u8d44\u8baf\u6765\u7269\u5ae9","publisher":{"@id":"https:\/\/www.wunen.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wunen.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":"Organization","@id":"https:\/\/www.wunen.com\/#organization","name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","url":"https:\/\/www.wunen.com\/","logo":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/","url":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","contentUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/cropped-\u7269\u5ae9-1.png","width":1024,"height":1024,"caption":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51"},"image":{"@id":"https:\/\/www.wunen.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8","name":"admin@wunen","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d90ec1e3faf77c4d4e66e40c29b85ff6401161e0502f401dae2f0e25b38ce25e?s=96&d=mm&r=g","caption":"admin@wunen"},"sameAs":["http:\/\/www.wunen.com"],"url":"http:\/\/www.wunen.com\/index.php\/author\/adminwunen\/"}]}},"_links":{"self":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/1694","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/comments?post=1694"}],"version-history":[{"count":0,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/1694\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media\/215"}],"wp:attachment":[{"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/media?parent=1694"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/categories?post=1694"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/tags?post=1694"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}