{"id":97144,"date":"2026-08-29T04:16:33","date_gmt":"2026-08-28T20:16:33","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/97144.html"},"modified":"2026-08-29T04:16:33","modified_gmt":"2026-08-28T20:16:33","slug":"bevy-0-14-%e7%9b%b8%e6%9c%ba-near-%e5%b9%b3%e9%9d%a2%e8%a3%81%e5%89%aa%e9%99%b7%e9%98%b1%ef%bc%9a%e4%b8%ba%e4%bb%80%e4%b9%88%e7%8e%a9%e5%ae%b6%e3%80%81%e6%95%8c%e4%ba%ba%e3%80%81%e5%ad%90%e5%bc%b9","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/97144.html","title":{"rendered":"Bevy 0.14 \u76f8\u673a near \u5e73\u9762\u88c1\u526a\u9677\u9631\uff1a\u4e3a\u4ec0\u4e48\u73a9\u5bb6\u3001\u654c\u4eba\u3001\u5b50\u5f39\u5168\u90e8\u6d88\u5931"},"content":{"rendered":"<h3>1. \u95ee\u9898\u73b0\u8c61<\/h3>\n<p>\u5728 Bevy 0.14 \u7684 2D \u6e38\u620f&#xff08;\u8001\u6e38\u620f\u9006\u5411\u91cd\u5199\u9879\u76ee&#xff09;\u4e2d&#xff0c;\u7a97\u53e3\u4e3a 640\u00d7480\u3002\u76f8\u673a\u4f7f\u7528 Camera2dBundle&#xff0c;\u4f46\u4e3a\u4e86\u201c\u5206\u8fa8\u7387\u65e0\u5173\u201d&#xff0c;\u624b\u52a8\u6784\u9020 OrthographicProjection \u5c06\u7f29\u653e\u6a21\u5f0f\u6539\u4e3a FixedVertical(600.0)&#xff0c;\u5373\u4e16\u754c\u9ad8\u5ea6\u56fa\u5b9a\u4e3a 600 \u903b\u8f91\u5355\u4f4d&#xff0c;\u5bbd\u5ea6\u968f\u7a97\u53e3\u6bd4\u4f8b\u81ea\u9002\u5e94\u3002<\/p>\n<p>\u5b9e\u9645\u8868\u73b0\u662f&#xff1a;\u4e3b\u83dc\u5355\u548c\u80cc\u666f&#xff08;\u68ee\u6797\u3001\u8349\u5730\u3001\u89c6\u5dee\u5c42&#xff09;\u6e32\u67d3\u5b8c\u5168\u6b63\u5e38&#xff0c;\u4f46\u6e38\u620f\u5185\u7684\u73a9\u5bb6\u3001\u654c\u4eba\u3001\u62a4\u76fe\u3001\u5b50\u5f39\u5168\u90e8\u4e0d\u663e\u793a\u3002<\/p>\n<p>\u503c\u5f97\u6ce8\u610f\u7684\u662f&#xff0c;\u4e24\u4e2a\u7248\u672c\u8868\u73b0\u5b8c\u5168\u4e00\u81f4&#xff1a;<\/p>\n<ul>\n<li>headless \u6a21\u5f0f&#xff08;Linux \u638c\u673a&#xff0c;\u65e0\u7a97\u53e3\u6e32\u67d3\u5230 \/dev\/fb0&#xff09;<\/li>\n<li>Mac \u684c\u9762\u7a97\u53e3\u7248<\/li>\n<\/ul>\n<p>\u8fd9\u6761\u4e00\u81f4\u6027\u5f88\u91cd\u8981&#xff0c;\u8bf4\u660e\u95ee\u9898\u4e0e\u5e73\u53f0\u3001\u6e32\u67d3\u540e\u7aef\u65e0\u5173\u3002<\/p>\n<h3>2. \u9010\u6761\u6392\u9664\u5e72\u6270\u9879<\/h3>\n<p>\u5728\u5b9a\u4f4d\u95ee\u9898\u524d&#xff0c;\u5148\u6392\u9664\u4ee5\u4e0b\u5e38\u89c1\u5e72\u6270\u56e0\u7d20&#xff1a;<\/p>\n<ul>\n<li>\u7d20\u6750\u52a0\u8f7d\u6b63\u5e38&#xff1a;\u65e5\u5fd7\u91cc\u6ca1\u6709\u4efb\u4f55 Asset failed to load&#xff0c;\u6240\u6709\u56fe\u7247 handle \u90fd\u662f\u597d\u7684\u3002<\/li>\n<li>\u6ca1\u6709 panic&#xff1a;\u6e38\u620f\u903b\u8f91\u4e00\u76f4\u5728\u8dd1&#xff0c;\u80fd\u542c\u5230\u97f3\u6548\u3001\u80fd\u6309\u952e\u5207\u83dc\u5355\u3001\u80fd\u8fdb\u6e38\u620f\u3002<\/li>\n<li>\u80cc\u666f\u5728\u3001\u73a9\u5bb6\u4e0d\u5728&#xff1a;\u4e0d\u662f\u201c\u6574\u4e2a\u573a\u666f\u6e32\u67d3\u574f\u4e86\u201d&#xff0c;\u800c\u662f\u201c\u7279\u5b9a z \u5c42\u7684\u7cbe\u7075\u6ca1\u4e86\u201d\u3002<\/li>\n<li>\u4fee\u6539\u7cbe\u7075\u5927\u5c0f\u3001\u6362\u7eb9\u7406\u3001\u6362 atlas \u90fd\u65e0\u6548&#xff1a;\u8bf4\u660e\u95ee\u9898\u4e0d\u5728\u7cbe\u7075\u8d44\u6e90\u672c\u8eab\u3002<\/li>\n<\/ul>\n<h3>3. \u8c2c\u8bef\u6eaf\u6e90&#xff1a;\u8e29\u8fc7\u7684\u4e00\u4e32\u9519\u8bef\u65b9\u5411<\/h3>\n<p>\u4ee5\u4e0b\u6392\u67e5\u65b9\u5411\u90fd\u5c5e\u4e8e\u201c\u516c\u5f00\u8bf4\u6cd5\/\u76f4\u89c9\u731c\u6d4b\u201d&#xff0c;\u4f46\u6700\u7ec8\u90fd\u6307\u5411\u9519\u8bef\u76ee\u6807&#xff1a;<\/p>\n<ul>\n<li>\u6000\u7591 z \u8f74\u6781\u6027&#xff1a;2D \u91cc z \u6b63\u65b9\u5411\u5230\u5e95\u671d\u5c4f\u5e55\u91cc\u8fd8\u662f\u5c4f\u5e55\u5916&#xff1f;\u4ee5\u4e3a\u73a9\u5bb6 z \u5199\u53cd\u3001\u88ab\u80cc\u666f\u6321\u4f4f\u3002<\/li>\n<li>\u6000\u7591\u7eb9\u7406 \/ atlas&#xff1a;sprite \u7684 texture handle \u6216\u56fe\u96c6 UV \u6709\u95ee\u9898\u3002<\/li>\n<li>\u6000\u7591\u89c6\u9525\u5254\u9664&#xff1a;\u7ed9\u73a9\u5bb6\u52a0 NoFrustumCulling \u7ec4\u4ef6&#xff0c;\u6ca1\u7528\u3002<\/li>\n<li>\u6000\u7591\u6e32\u67d3\u987a\u5e8f \/ sorting&#xff1a;\u4ee5\u4e3a\u53ea\u662f\u88ab\u522b\u7684\u5c42\u76d6\u4f4f\u3002<\/li>\n<\/ul>\n<h3>4. \u771f\u6b63\u539f\u56e0&#xff1a;\u76f8\u673a\u7684 near \u5e73\u9762&#xff08;\u8fd1\u88c1\u526a\u9762&#xff09;<\/h3>\n<p>\u771f\u6b63\u7684\u539f\u56e0\u4e0d\u662f\u4e0a\u9762\u4efb\u4f55\u4e00\u4e2a&#xff0c;\u800c\u662f\u76f8\u673a\u7684 near \u5e73\u9762&#xff08;\u8fd1\u88c1\u526a\u9762&#xff09;\u3002<\/p>\n<p>\u5148\u770b Bevy 0.14 \u91cc\u4e24\u7ec4\u9ed8\u8ba4\u503c\u7684\u5dee\u522b&#xff0c;\u95ee\u9898\u5c31\u51fa\u5728\u8fd9\u91cc&#xff1a;<\/p>\n<ul>\n<li>OrthographicProjection \u81ea\u8eab\u7684\u9ed8\u8ba4\u503c&#xff1a;near \u4e3a 0.0&#xff08;\u6ce8\u610f\u662f 0&#xff09;\u3002<\/li>\n<li>Camera2dBundle \u7684\u9ed8\u8ba4\u503c&#xff1a;near \u4e3a -1000.0&#xff08;Camera2dBundle \u4e13\u95e8\u4e3a 2D \u573a\u666f\u8986\u76d6\u4e86\u6295\u5f71\u9ed8\u8ba4\u503c&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u5f88\u591a\u5f00\u53d1\u8005\u4ee5\u4e3a\u624b\u52a8\u5199 OrthographicProjection { ..default() } \u5c31\u7b49\u540c\u4e8e Camera2dBundle \u7684\u9ed8\u8ba4\u6295\u5f71&#xff0c;\u5176\u5b9e\u4e0d\u7136\u3002..default() \u586b\u5145\u7684\u662f OrthographicProjection \u81ea\u5df1\u7684\u9ed8\u8ba4\u503c&#xff0c;near \u662f 0.0&#xff0c;\u800c\u4e0d\u662f -1000\u3002<\/p>\n<p>\u5e38\u89c1\u7684\u5199\u6cd5&#xff08;\u4f1a\u51fa\u73b0\u7cbe\u7075\u4e0d\u663e\u793a&#xff09;&#xff1a;<\/p>\n<p>commands.spawn(Camera2dBundle {<br \/>\n    projection: OrthographicProjection {<br \/>\n        scaling_mode: ScalingMode::FixedVertical(600.0),<br \/>\n        ..default()<br \/>\n    },<br \/>\n    ..default()<br \/>\n});<\/p>\n<p>\u63a8\u8350\u7684\u5199\u6cd5&#xff08;\u663e\u5f0f\u7ed9\u51fa near&#xff09;&#xff1a;<\/p>\n<p>commands.spawn(Camera2dBundle {<br \/>\n    projection: OrthographicProjection {<br \/>\n        scaling_mode: ScalingMode::FixedVertical(600.0),<br \/>\n        near: -1000.0,<br \/>\n        ..default()<br \/>\n    },<br \/>\n    ..default()<br \/>\n});<\/p>\n<p>near&#061;0.0 \u610f\u5473\u7740\u8fd1\u88c1\u526a\u9762\u6b63\u597d\u538b\u5728\u5c4f\u5e55\u5e73\u9762 z&#061;0 \u4e0a&#xff0c;z\u22650 \u7684\u7cbe\u7075&#xff08;\u5728\u5c4f\u5e55\u5e73\u9762\u201c\u540e\u65b9\u201d&#xff09;\u5168\u90e8\u88ab\u88c1\u6389\u3002\u672c\u9879\u76ee\u7684\u73a9\u5bb6\u3001\u654c\u4eba\u3001\u62a4\u76fe\u3001\u5b50\u5f39\u90fd\u5728 z\u2248&#043;0.8~&#043;1.0&#xff0c;\u6240\u4ee5\u5168\u90e8\u4e0d\u53ef\u89c1&#xff1b;\u80cc\u666f z&lt;0&#xff0c;\u843d\u5728\u88c1\u526a\u8303\u56f4\u5916&#xff0c;\u6b63\u5e38\u663e\u793a\u3002<\/p>\n<p>\u4e00\u53e5\u8bdd\u603b\u7ed3&#xff1a;\u4e0d\u662f\u7cbe\u7075\u7684\u95ee\u9898&#xff0c;\u662f\u76f8\u673a\u628a z\u22650 \u7684\u4e16\u754c\u6574\u4e2a\u201c\u770b\u4e0d\u89c1\u201d\u4e86\u3002<\/p>\n<h3>5. \u89e3\u51b3\u65b9\u6848<\/h3>\n<p>\u4fee\u590d\u65b9\u5f0f\u5f88\u7b80\u5355&#xff1a;\u5728\u624b\u52a8\u6784\u9020 OrthographicProjection \u65f6&#xff0c;\u663e\u5f0f\u8bbe\u7f6e near \u4e3a\u8d1f\u503c&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p>commands.spawn(Camera2dBundle {<br \/>\n    projection: OrthographicProjection {<br \/>\n        scaling_mode: ScalingMode::FixedVertical(600.0),<br \/>\n        near: -1000.0,<br \/>\n        ..default()<br \/>\n    },<br \/>\n    ..default()<br \/>\n});<\/p>\n<p>\u8fd9\u6837\u8fd1\u88c1\u526a\u9762\u56de\u5230 z&#061;-1000&#xff0c;z\u22650 \u7684\u7cbe\u7075\u5c31\u80fd\u6b63\u5e38\u6e32\u67d3\u4e86\u3002<\/p>\n<h3>6. \u7ecf\u9a8c\u603b\u7ed3<\/h3>\n<p>\u8fd9\u4e2a\u95ee\u9898\u7684\u6838\u5fc3\u6559\u8bad\u662f&#xff1a;\u5728\u4f7f\u7528 ..default() \u6784\u9020\u6295\u5f71\u65f6&#xff0c;\u52a1\u5fc5\u68c0\u67e5 near\/far \u662f\u5426\u88ab\u91cd\u7f6e\u4e3a\u9ed8\u8ba4\u503c\u3002Bevy \u7684 Camera2dBundle::default() \u548c OrthographicProjection::default() \u7684 near \u503c\u5e76\u4e0d\u4e00\u81f4&#xff0c;\u524d\u8005\u662f -1000&#xff0c;\u540e\u8005\u662f 0.0\u3002\u624b\u52a8\u6784\u9020\u6295\u5f71\u65f6&#xff0c;\u9ed8\u8ba4\u503c\u53ef\u80fd\u4e0e\u4f60\u9884\u671f\u7684\u76f8\u673a\u884c\u4e3a\u4e0d\u540c\u3002<\/p>\n<p>\u6392\u67e5\u8fc7\u7a0b\u5206\u4eab&#xff1a;<\/p>\n<ul>\n<li>\u7528\u8bca\u65ad\u7f51\u683c\u5728 z \u8f74\u4e0d\u540c\u6df1\u5ea6\u6446\u653e\u6d4b\u8bd5\u5757&#xff08;z \u4ece -2 \u5230 &#043;3&#xff0c;\u6bcf\u9694 0.5 \u4e00\u5c42&#xff09;&#xff0c;\u89c2\u5bdf\u54ea\u4e9b\u5c42\u80fd\u663e\u793a\u3002<\/li>\n<li>\u7ed3\u679c\u663e\u793a&#xff1a;z \u5728 -0.9 \u5230 -0.1 \u4e4b\u95f4\u7684\u6d4b\u8bd5\u5757\u6b63\u5e38\u663e\u793a&#xff0c;z \u5927\u4e8e\u7b49\u4e8e 0 \u7684\u5168\u90e8\u4e0d\u663e\u793a\u3002<\/li>\n<li>\u7ed9\u6d4b\u8bd5\u5757\u52a0\u4e0a NoFrustumCulling \u7ec4\u4ef6&#xff0c;\u6392\u9664\u4e86\u89c6\u9525\u5254\u9664\u7684\u5e72\u6270&#xff0c;\u73b0\u8c61\u4e0d\u53d8&#xff0c;\u8bf4\u660e\u4e0d\u662f\u89c6\u9525\u5254\u9664\u7684\u95ee\u9898\u3002<\/li>\n<li>\u9605\u8bfb Bevy \u6e90\u7801\u540e\u53d1\u73b0 OrthographicProjection \u7684\u9ed8\u8ba4 near \u5c31\u662f 0.0&#xff0c;\u7ed3\u6784\u4f53\u6587\u6863\u91cc\u4e5f\u63d0\u793a\u8fc7\u624b\u52a8\u521d\u59cb\u5316\u6295\u5f71\u8981\u7559\u610f\u9ed8\u8ba4\u503c\u3002<\/li>\n<li>\u628a near \u6539\u6210 -1000.0 \u4e4b\u540e&#xff0c;z \u5728 &#043;3.0 \u4ee5\u5185\u7684\u7cbe\u7075\u90fd\u80fd\u6b63\u5e38\u663e\u793a\u3002<\/li>\n<\/ul>\n<p>\u8fb9\u754c\u6761\u4ef6&#xff1a;<\/p>\n<ul>\n<li>\u53ea\u6709\u624b\u52a8\u6784\u9020\u6295\u5f71\u5e76\u4e14\u4f9d\u8d56 ..default() \u65f6\u624d\u4f1a\u89e6\u53d1&#xff0c;\u76f4\u63a5\u4f7f\u7528 Camera2dBundle::default() \u4e0d\u4f1a\u3002<\/li>\n<li>near \u4e3a 0.0 \u65f6&#xff0c;\u5c4f\u5e55\u5e73\u9762&#xff08;z&#061;0&#xff09;\u53ca\u4e4b\u540e\u7684\u7cbe\u7075\u4f1a\u88ab\u8fd1\u88c1\u526a\u9762\u88c1\u6389&#xff0c;\u6240\u4ee5\u80cc\u666f&#xff08;z \u5c0f\u4e8e 0&#xff09;\u6b63\u5e38\u663e\u793a\u3001\u524d\u666f\u7cbe\u7075&#xff08;z \u5927\u4e8e\u7b49\u4e8e 0&#xff09;\u5168\u90e8\u6d88\u5931&#xff0c;\u8fd9\u4e2a\u73b0\u8c61\u5f88\u6709\u8fa8\u8bc6\u5ea6&#xff0c;\u9047\u5230\u57fa\u672c\u53ef\u4ee5\u7acb\u523b\u8054\u60f3\u5230\u76f8\u673a near \u7684\u95ee\u9898\u3002<\/li>\n<\/ul>\n<p>\u5efa\u8bae\u5728\u9879\u76ee\u4e2d\u7edf\u4e00\u5c01\u88c5\u76f8\u673a\u521b\u5efa\u51fd\u6570&#xff0c;\u663e\u5f0f\u6307\u5b9a near\/far&#xff0c;\u907f\u514d\u7c7b\u4f3c\u95ee\u9898\u518d\u6b21\u53d1\u751f\u3002<\/p>\n<h3>7. \u843d\u5730\u7ed3\u8bba&#xff1a;\u53ef\u590d\u7528\u89c4\u5219\u4e0e\u901f\u67e5\u6e05\u5355<\/h3>\n<p>\u628a\u8fd9\u6b21\u8e29\u5751\u6c89\u6dc0\u6210\u51e0\u6761\u53ef\u4ee5\u76f4\u63a5\u590d\u7528\u7684\u89c4\u5219&#xff0c;\u65b9\u4fbf\u4ee5\u540e\u9047\u5230\u7c7b\u4f3c\u95ee\u9898\u5feb\u901f\u5b9a\u4f4d\u3002<\/p>\n<h4>\u53ef\u590d\u7528\u89c4\u5219<\/h4>\n<ul>\n<li>\u5728 Bevy 2D \u91cc&#xff0c;\u53ea\u8981\u624b\u52a8\u6784\u9020 OrthographicProjection&#xff08;\u6bd4\u5982\u6539 scaling_mode\u3001\u6539 viewport\u3001\u6539\u6295\u5f71\u8fb9\u754c&#xff09;&#xff0c;\u5fc5\u987b\u663e\u5f0f\u5199 near: -1000.0&#xff08;\u6216\u4efb\u610f\u8d1f\u503c&#xff09;\u3002\u4e0d\u8981\u6307\u671b ..default() \u5e2e\u4f60\u7ee7\u627f Camera2dBundle \u7684 near\u3002<\/li>\n<li>\u4e00\u773c\u8bc6\u522b\u7684\u75c7\u72b6&#xff1a;\u80cc\u666f&#xff08;z&lt;0&#xff09;\u5728\u3001\u73a9\u5bb6\/\u654c\u4eba\/\u5b50\u5f39&#xff08;z\u22650&#xff09;\u5168\u4e0d\u5728&#xff0c;\u5927\u6982\u7387\u5c31\u662f\u76f8\u673a near \u88ab\u91cd\u7f6e\u6210 0.0\u3002<\/li>\n<li>\u8fd9\u4e2a\u5751 headless&#xff08;\u79bb\u5c4f\u6e32\u67d3&#xff09;\u548c\u684c\u9762\u7a97\u53e3\u7248\u90fd\u4f1a\u8e29&#xff0c;\u4e0e\u5e73\u53f0\u65e0\u5173\u3002<\/li>\n<\/ul>\n<h4>\u9002\u7528\u8303\u56f4<\/h4>\n<ul>\n<li>Bevy 0.14&#xff08;0.13 \u53ca\u66f4\u65e9\u7248\u672c\u9ed8\u8ba4\u503c\u76f8\u540c&#xff0c;\u540c\u6837\u9002\u7528&#xff09;\u3002<\/li>\n<li>\u4efb\u610f\u7528 Camera2dBundle &#043; \u624b\u52a8\u6539\u6295\u5f71\u7684 2D \u9879\u76ee\u3002<\/li>\n<\/ul>\n<h4>\u4eba\u7c7b\u5f00\u53d1\u8005\u901f\u67e5\u81ea\u67e5\u4e09\u6b65<\/h4>\n<li>\u770b spawn \u76f8\u673a\u7684\u4f4d\u7f6e&#xff0c;\u662f\u4e0d\u662f\u624b\u52a8\u5199\u4e86 OrthographicProjection \u7ed3\u6784\u4f53\u3002<\/li>\n<li>\u7ed3\u6784\u4f53\u91cc\u6709\u6ca1\u6709\u663e\u5f0f near \u5b57\u6bb5&#xff1f;\u6ca1\u6709\u5c31\u662f near&#061;0.0\u3002<\/li>\n<li>\u52a0\u4e0a near: -1000.0&#xff0c;\u91cd\u65b0\u7f16\u8bd1\u8dd1\u4e00\u904d&#xff0c;\u73a9\u5bb6\/\u654c\u4eba\u5e94\u8be5\u5c31\u51fa\u73b0\u4e86\u3002<\/li>\n<h4>\u5bf9\u8bdd\u5f0f AI \u901f\u67e5\u4e00\u53e5\u8bdd\u95ee\u6cd5<\/h4>\n<p>\u201cBevy 2D \u91cc\u80cc\u666f\u6b63\u5e38\u4f46\u73a9\u5bb6\/\u654c\u4eba\u7cbe\u7075\u5168\u4e0d\u53ef\u89c1&#xff0c;\u600e\u4e48\u529e&#xff1f;\u201d\u56de\u7b54\u8981\u70b9&#xff1a;\u68c0\u67e5\u624b\u52a8\u6784\u9020\u7684 OrthographicProjection \u662f\u4e0d\u662f\u88ab ..default() \u628a near \u91cd\u7f6e\u6210 0.0&#xff1b;\u624b\u52a8\u6539\u6295\u5f71\u65f6\u663e\u5f0f\u8865 near: -1000.0&#xff0c;\u95ee\u9898\u5373\u89e3\u3002<\/p>\n<h4>\u4ee3\u7801 Agent \u901f\u67e5<\/h4>\n<p>\u53ef\u6267\u884c\u81ea\u67e5\u547d\u4ee4&#xff0c;\u5148\u5b9a\u4f4d\u76f8\u673a\u521d\u59cb\u5316\u4f4d\u7f6e&#xff1a;<\/p>\n<p>grep -rn &#034;OrthographicProjection&#034; src\/ | head<\/p>\n<p>\u4fee\u590d\u52a8\u4f5c&#xff1a;\u5728\u6295\u5f71\u7ed3\u6784\u4f53\u91cc\u8865\u4e00\u884c near: -1000.0&#xff0c;\u6539\u5b8c cargo check \u5e76\u8dd1\u4e00\u904d&#xff0c;\u786e\u8ba4\u73a9\u5bb6\/\u654c\u4eba\u53ef\u89c1\u540e\u518d\u63d0\u4ea4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. \u95ee\u9898\u73b0\u8c61\u5728 Bevy 0.14 \u7684 2D \u6e38\u620f&#xff08;\u8001\u6e38\u620f\u9006\u5411\u91cd\u5199\u9879\u76ee&#xff09;\u4e2d&#xff0c;\u7a97\u53e3\u4e3a 640\u00d7480\u3002\u76f8\u673a\u4f7f\u7528 Camera2dBundle&#xff0c;\u4f46\u4e3a\u4e86\u201c\u5206\u8fa8\u7387\u65e0\u5173\u201d&#xff0c;\u624b\u52a8\u6784\u9020 OrthographicProjection \u5c06\u7f29\u653e\u6a21\u5f0f\u6539\u4e3a FixedVertical(600.0)&#xff0c;\u5373\u4e16\u754c\u9ad8\u5ea6\u56fa\u5b9a\u4e3a 600 \u903b\u8f91\u5355\u4f4d&#xff0c;\u5bbd\u5ea6\u968f\u7a97\u53e3\u6bd4\u4f8b\u81ea\u9002\u5e94\u3002\u5b9e\u9645\u8868\u73b0\u662f&#xff1a;\u4e3b\u83dc\u5355\u548c\u80cc\u666f&amp;#xf<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11147,11145,11143,11146,11144],"topic":[],"class_list":["post-97144","post","type-post","status-publish","format-standard","hentry","category-server","tag-bevy2d","tag-near","tag-rust","tag-11146","tag-11144"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bevy 0.14 \u76f8\u673a near \u5e73\u9762\u88c1\u526a\u9677\u9631\uff1a\u4e3a\u4ec0\u4e48\u73a9\u5bb6\u3001\u654c\u4eba\u3001\u5b50\u5f39\u5168\u90e8\u6d88\u5931 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/97144.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bevy 0.14 \u76f8\u673a near \u5e73\u9762\u88c1\u526a\u9677\u9631\uff1a\u4e3a\u4ec0\u4e48\u73a9\u5bb6\u3001\u654c\u4eba\u3001\u5b50\u5f39\u5168\u90e8\u6d88\u5931 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"1. \u95ee\u9898\u73b0\u8c61\u5728 Bevy 0.14 \u7684 2D \u6e38\u620f&#xff08;\u8001\u6e38\u620f\u9006\u5411\u91cd\u5199\u9879\u76ee&#xff09;\u4e2d&#xff0c;\u7a97\u53e3\u4e3a 640\u00d7480\u3002\u76f8\u673a\u4f7f\u7528 Camera2dBundle&#xff0c;\u4f46\u4e3a\u4e86\u201c\u5206\u8fa8\u7387\u65e0\u5173\u201d&#xff0c;\u624b\u52a8\u6784\u9020 OrthographicProjection \u5c06\u7f29\u653e\u6a21\u5f0f\u6539\u4e3a FixedVertical(600.0)&#xff0c;\u5373\u4e16\u754c\u9ad8\u5ea6\u56fa\u5b9a\u4e3a 600 \u903b\u8f91\u5355\u4f4d&#xff0c;\u5bbd\u5ea6\u968f\u7a97\u53e3\u6bd4\u4f8b\u81ea\u9002\u5e94\u3002\u5b9e\u9645\u8868\u73b0\u662f&#xff1a;\u4e3b\u83dc\u5355\u548c\u80cc\u666f&amp;#xf\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/97144.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-28T20:16:33+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\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\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/97144.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/97144.html\",\"name\":\"Bevy 0.14 \u76f8\u673a near \u5e73\u9762\u88c1\u526a\u9677\u9631\uff1a\u4e3a\u4ec0\u4e48\u73a9\u5bb6\u3001\u654c\u4eba\u3001\u5b50\u5f39\u5168\u90e8\u6d88\u5931 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-28T20:16:33+00:00\",\"dateModified\":\"2026-08-28T20:16:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/97144.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/97144.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/97144.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bevy 0.14 \u76f8\u673a near \u5e73\u9762\u88c1\u526a\u9677\u9631\uff1a\u4e3a\u4ec0\u4e48\u73a9\u5bb6\u3001\u654c\u4eba\u3001\u5b50\u5f39\u5168\u90e8\u6d88\u5931\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bevy 0.14 \u76f8\u673a near \u5e73\u9762\u88c1\u526a\u9677\u9631\uff1a\u4e3a\u4ec0\u4e48\u73a9\u5bb6\u3001\u654c\u4eba\u3001\u5b50\u5f39\u5168\u90e8\u6d88\u5931 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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":"https:\/\/www.wsisp.com\/helps\/97144.html","og_locale":"zh_CN","og_type":"article","og_title":"Bevy 0.14 \u76f8\u673a near \u5e73\u9762\u88c1\u526a\u9677\u9631\uff1a\u4e3a\u4ec0\u4e48\u73a9\u5bb6\u3001\u654c\u4eba\u3001\u5b50\u5f39\u5168\u90e8\u6d88\u5931 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"1. \u95ee\u9898\u73b0\u8c61\u5728 Bevy 0.14 \u7684 2D \u6e38\u620f&#xff08;\u8001\u6e38\u620f\u9006\u5411\u91cd\u5199\u9879\u76ee&#xff09;\u4e2d&#xff0c;\u7a97\u53e3\u4e3a 640\u00d7480\u3002\u76f8\u673a\u4f7f\u7528 Camera2dBundle&#xff0c;\u4f46\u4e3a\u4e86\u201c\u5206\u8fa8\u7387\u65e0\u5173\u201d&#xff0c;\u624b\u52a8\u6784\u9020 OrthographicProjection \u5c06\u7f29\u653e\u6a21\u5f0f\u6539\u4e3a FixedVertical(600.0)&#xff0c;\u5373\u4e16\u754c\u9ad8\u5ea6\u56fa\u5b9a\u4e3a 600 \u903b\u8f91\u5355\u4f4d&#xff0c;\u5bbd\u5ea6\u968f\u7a97\u53e3\u6bd4\u4f8b\u81ea\u9002\u5e94\u3002\u5b9e\u9645\u8868\u73b0\u662f&#xff1a;\u4e3b\u83dc\u5355\u548c\u80cc\u666f&amp;#xf","og_url":"https:\/\/www.wsisp.com\/helps\/97144.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-28T20:16:33+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/97144.html","url":"https:\/\/www.wsisp.com\/helps\/97144.html","name":"Bevy 0.14 \u76f8\u673a near \u5e73\u9762\u88c1\u526a\u9677\u9631\uff1a\u4e3a\u4ec0\u4e48\u73a9\u5bb6\u3001\u654c\u4eba\u3001\u5b50\u5f39\u5168\u90e8\u6d88\u5931 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-28T20:16:33+00:00","dateModified":"2026-08-28T20:16:33+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/97144.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/97144.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/97144.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Bevy 0.14 \u76f8\u673a near \u5e73\u9762\u88c1\u526a\u9677\u9631\uff1a\u4e3a\u4ec0\u4e48\u73a9\u5bb6\u3001\u654c\u4eba\u3001\u5b50\u5f39\u5168\u90e8\u6d88\u5931"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/97144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=97144"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/97144\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=97144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=97144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=97144"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=97144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}