{"id":402,"date":"2025-04-02T06:00:22","date_gmt":"2025-04-01T22:00:22","guid":{"rendered":"https:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/"},"modified":"2025-04-02T06:00:22","modified_gmt":"2025-04-01T22:00:22","slug":"%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89","status":"publish","type":"post","link":"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/","title":{"rendered":"\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09"},"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=\"htmledit_views\" id=\"content_views\">\n<h2 style=\"margin-left:0px;\">\n   <span style=\"color:#0d0016;\"><br \/>\n    \u4e00\u3001\u6dfb\u52a0\u4e3b\u754c\u9762\u548c\u51c6\u661f<br \/>\n   <\/span><br \/>\n  <\/h2>\n<p style=\"margin-left:0;\">\n   \u6dfb\u52a0\u5c04\u51fb\u6e38\u620f\u7684\u7784\u51c6\u51c6\u661f\uff0c\u65b9\u6cd5\u6709\u540c\u6837\u53ef\u4ee5\u53ea\u901a\u8fc7\u84dd\u56fe\u53bb\u521b\u5efa\u4f7f\u7528\uff0c\u6b64\u6b21\u4f1a\u540c\u4ecb\u7ecd\u52a8\u753b\u84dd\u56fe\u4e00\u6837\uff0c\u901a\u8fc7UEC++\u7684\u65b9\u5f0f\u53bb\u521b\u5efaWidget\u7c7b\uff0c\u5c06Widget\u7c7b\u4e2d\u7684\u53d8\u91cf\u548c\u84dd\u56fe\u4e2d\u7684UserWidget\u53d8\u91cf\u7ed1\u5b9a\u5728\u4e00\u8d77\u8fdb\u884c\u4f7f\u7528\u3002\n  <\/p>\n<p style=\"margin-left:0;\">\n   \u4e0d\u8fc7\u5728\u6b64\u4e4b\u524d\uff0c\u9700\u8981\u5148\u521b\u5efa\u4e00\u4e2aMainUI\u4f5c\u4e3a\u6e38\u620f\u4e3b\u754c\u9762\uff0c\u4e4b\u540e\u518d\u521b\u5efa\u4e00\u4e2aCorssHairUI\u4f5c\u4e3a\u51c6\u661f\u7684\u754c\u9762\uff0c\u5c06\u51c6\u661f\u7684\u754c\u9762\u6dfb\u52a0\u5230\u4e3b\u754c\u9762\u4e0a\u3002\n  <\/p>\n<h3 style=\"margin-left:0px;\">\n   1.\u521b\u5efa\u4e3b\u754c\u9762\u5e76\u4fee\u6539\u7c7b\u8bbe\u7f6e<br \/>\n  <\/h3>\n<p style=\"margin-left:0;\">\n   \u521b\u5efaHUD\u7c7b\n  <\/p>\n<p class=\"img-center\">\n<p>\n   \u8fd9\u4e2aHUD\u4f5c\u4e3aGameplay\u4e2d\u7684\u4e00\u5458\uff0c\u5728\u9879\u76ee\u8bbe\u7f6e\u4e2d\u7684HUD\u4e00\u9879\uff0c\u4f1a\u6539\u4e3a\u6211\u81ea\u5df1\u521b\u5efa\u7684HUD\u7c7b\u3002\n  <\/p>\n<\/p>\n<p>\n   \u521b\u5efaMainUI\n  <\/p>\n<\/p>\n<p>\n   \u57fa\u4e8eMainUI\u521b\u5efa\u63a7\u4ef6\u84dd\u56fe\n  <\/p>\n<\/p>\n<h3>\n   2.\u5c06\u4e3b\u754c\u9762\u751f\u6210\u5728\u6e38\u620f\u4e2d<br \/>\n  <\/h3>\n<p style=\"margin-left:0;\">\n   HUD\u7c7b\u521b\u5efa\u4e86\uff0cMainUI\u7c7b\u4e5f\u521b\u5efa\u597d\u4e86\uff0c\u73b0\u5728\u8981\u5728HUD\u4e2d\u5c06\u4e3b\u754c\u9762\u521b\u5efa\u51fa\u6765\u3002\n  <\/p>\n<p style=\"margin-left:0;\">\n   ShootingGameHUD.h\n  <\/p>\n<pre><code class=\"hljs\">private:\n\tUPROPERTY(VisibleAnywhere,BlueprintReadOnly,Category=UI,meta=(AllowPrivateAccess=\"true\"))\n\tTSubclassOf&lt;UUserWidget&gt; MainUIAsset;\n\t\n\tUPROPERTY(VisibleAnywhere,BlueprintReadOnly,Category=UI,meta=(AllowPrivateAccess=\"true\"))\n\tUMainUI* MainUI;\npublic:\n    FORCEINLINE UMainUI* GetMainUI() const {return MainUI;}<\/code><\/pre>\n<p style=\"margin-left:0;\">\n   ShootingGameHUD.cpp\n  <\/p>\n<pre><code class=\"hljs\">AShootingGameHUD::AShootingGameHUD()\n{\n\tstatic ConstructorHelpers::FClassFinder&lt;UUserWidget&gt; UIAsset(TEXT(\"\/Script\/UMGEditor.WidgetBlueprint'\/Game\/Blueprints\/UI\/WBP_MainUI.WBP_MainUI_C'\"));\n\tif (UIAsset.Succeeded())\n\t{\n\t\tMainUIAsset = UIAsset.Class;\n\t}\n}\n\nvoid AShootingGameHUD::BeginPlay()\n{\n\tSuper::BeginPlay();\n\tif (MainUIAsset)\n\t{\n\t\tMainUI = CreateWidget&lt;UMainUI&gt;(GetWorld(),MainUIAsset);\n\t\tif (MainUI)\n\t\t{\n\t\t\tMainUI-&gt;AddToViewport();\n\t\t}\n\t}\n}<\/code><\/pre>\n<p style=\"margin-left:0;\">\n   \u8fd9\u91cc\u6211\u4f7f\u7528\u7684\u662f\u5728\u6784\u9020\u51fd\u6570\u4e2d\u901a\u8fc7\u6587\u4ef6\u8def\u5f84\u9759\u6001\u5bfb\u627e\u7c7b\u7684\u65b9\u5f0f\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u5728\u84dd\u56fe\u4e2d\u8d4b\u503c\u7684\u65b9\u5f0f\u521b\u5efa\uff0c\u8fd9\u4e2a\u65f6\u5019\u8981\u5c06\u58f0\u660eMainUIAsset\u7684\u5c5e\u6027\u5b8f\u7684VisibleAnywhere\u4fee\u6539\u6210EditAnywhere\uff0c\u4e4b\u540e\u5728BP_ShootingGameHUD\u4e2d\u4e3a\u5176\u8d4b\u503c\u3002\n  <\/p>\n<p style=\"margin-left:0;\">\n   FClassFinder\u5176\u540e\u7684\u6587\u4ef6\u8def\u5f84\u5728\u5f15\u64ce\u4e2d\u9009\u4e2d\u8981\u8d4b\u503c\u7684\u7c7b\uff0c\u53f3\u952e-&gt;\u590d\u5236\u5f15\u7528\u3002\n  <\/p>\n<\/p>\n<p style=\"margin-left:0;\">\n   \u6dfb\u52a0UMG\u7684\u6a21\u5757\u5f15\u7528\n  <\/p>\n<p style=\"margin-left:0;\">\n   \u5728\u9879\u76ee\u540d.build.cs\u6587\u4ef6\u4e0b\uff0c\u8981\u6dfb\u52a0UMG\u6a21\u5757\uff0c\u4e0d\u7136\u7684\u8bdd\u4f1a\u5bfc\u81f4\u7f16\u8bd1\u4e0d\u901a\u8fc7\u3002\n  <\/p>\n<\/p>\n<h3 style=\"margin-left:0px;\">\n   3.\u521b\u5efa\u51c6\u661f\u5e76\u4fee\u6539\u7c7b\u8bbe\u7f6e<br \/>\n  <\/h3>\n<p style=\"margin-left:0;\">\n   \u8003\u8651\u5230\u540e\u7eed\u4f1a\u4fee\u6539\u51c6\u661f\u7684\u5b9e\u73b0\u7c7b\u578b\uff0c\u8fd9\u91cc\u6211\u5e76\u6ca1\u6709\u521b\u5efa\u5355\u72ec\u7684\u4e00\u4e2a\u51c6\u661f\u7684Widget\u7c7b\uff0c\u53ea\u662f\u521b\u5efa\u4e86\u4e00\u4e2aUserWidget\u84dd\u56fe\uff0c\u53bb\u6dfb\u52a0\u51c6\u661f\u7684\u56fe\u7247\uff0c\u518d\u5c06\u8fd9\u4e2aWidget\u653e\u5230MainUI\u4e2d\u3002\n  <\/p>\n<\/p>\n<p style=\"margin-left:0;\">\n   \u51c6\u661f\u6dfb\u52a0\u5230MainUI\u4e2d\n  <\/p>\n<p style=\"margin-left:0;\">\n<p style=\"margin-left:0;\">\n   \u7f16\u8bd1\u5982\u679c\u6ca1\u95ee\u9898\u7684\u8bdd\uff0c\u8fd0\u884c\uff0c\u51c6\u661f\u5c31\u4f1a\u663e\u793a\u5230\u754c\u9762\u4e2d\uff0c\u5982\u679c\u89c9\u5f97\u89d2\u8272\u4f4d\u7f6e\u4e0d\u597d\uff0c\u53ef\u4ee5\u81ea\u884c\u8c03\u6574\u3002\n  <\/p>\n<p style=\"margin-left:0;\">\n<h3 style=\"margin-left:0px;\">\n   4.\u5bf9\u5e94\u4ee3\u7801<br \/>\n  <\/h3>\n<p style=\"margin-left:0;\">\n   ShootingGameHUD.h\n  <\/p>\n<pre><code class=\"hljs\">#pragma once\n\n#include \"CoreMinimal.h\"\n#include \"GameFramework\/HUD.h\"\n#include \"ShootingGameHUD.generated.h\"\n\nclass UMainUI;\nclass UUserWidget;\n\n\/**\n * HUD\n *\/\nUCLASS()\nclass SHOOTINGGAME_API AShootingGameHUD : public AHUD\n{\n\tGENERATED_BODY()\npublic:\n\tAShootingGameHUD();\n\nprotected:\n\tvirtual void BeginPlay() override;\nprivate:\n\tUPROPERTY(VisibleAnywhere,BlueprintReadOnly,Category=UI,meta=(AllowPrivateAccess=\"true\"))\n\tTSubclassOf&lt;UUserWidget&gt; MainUIAsset;\n\t\n\tUPROPERTY(VisibleAnywhere,BlueprintReadOnly,Category=UI,meta=(AllowPrivateAccess=\"true\"))\n\tUMainUI* MainUI;\npublic:\n\tFORCEINLINE UMainUI* GetMainUI() const {return MainUI;}\n\t\n};<\/code><\/pre>\n<p>\n   ShootingGameHUD.cpp\n  <\/p>\n<pre><code class=\"hljs\">#include \"Gameplay\/ShootingGameHUD.h\"\n#include \"Blueprint\/UserWidget.h\"\n#include \"UI\/MainUI.h\"\n\nAShootingGameHUD::AShootingGameHUD()\n{\n\tstatic ConstructorHelpers::FClassFinder&lt;UUserWidget&gt; UIAsset(TEXT(\"\/Script\/UMGEditor.WidgetBlueprint'\/Game\/Blueprints\/UI\/WBP_MainUI.WBP_MainUI_C'\"));\n\tif (UIAsset.Succeeded())\n\t{\n\t\tMainUIAsset = UIAsset.Class;\n\t}\n}\n\nvoid AShootingGameHUD::BeginPlay()\n{\n\tSuper::BeginPlay();\n\tif (MainUIAsset)\n\t{\n\t\tMainUI = CreateWidget&lt;UMainUI&gt;(GetWorld(),MainUIAsset);\n\t\tif (MainUI)\n\t\t{\n\t\t\tMainUI-&gt;AddToViewport();\n\t\t}\n\t}\n}<\/code><\/pre>\n<h2>\n   \u4e8c\u3001\u5f00\u706b\u5c04\u51fb<br \/>\n  <\/h2>\n<p style=\"margin-left:0;\">\n   \u76ee\u524d\u4f7f\u7528\u5230\u7684\u52a8\u753b\u662f\u6b65\u67aa\u7684\u52a8\u753b\uff0c\u5c04\u51fb\u65b9\u5f0f\u4e3a\u53ef\u4ee5\u70b9\u6309\u5f00\u706b\uff0c\u53ef\u4ee5\u957f\u6309\u8fde\u7eed\u5f00\u706b\u3002\n  <\/p>\n<h3 style=\"margin-left:0px;\">\n   1.\u5f00\u706b\u7684\u8f93\u5165\u6620\u5c04<br \/>\n  <\/h3>\n<p style=\"margin-left:0;\">\n   \u9879\u76ee\u8bbe\u7f6e\u4e2d\u6dfb\u52a0\u5f00\u706b\u7684\u8f93\u5165\u6620\u5c04\u3002\n  <\/p>\n<p style=\"margin-left:0;\">\n<h3 style=\"margin-left:0px;\">\n   2.\u5f00\u706b\u5c04\u51fb\u7684\u5b9e\u73b0\u601d\u8def\u548c\u4ee3\u7801<br \/>\n  <\/h3>\n<p>\n   \u601d\u8def\uff1a\n  <\/p>\n<\/p>\n<p style=\"margin-left:0;\">\n   \u4e0a\u8ff0\u601d\u8def\u63d0\u5230\u8fc7\u7684\u53d8\u91cf\u548c\u65b9\u6cd5\uff1a\n  <\/p>\n<p style=\"margin-left:0;\">\n   \u8fd9\u91cc\u662f\u653e\u5230\u4e86BaseCharacter.h\u4e2d\n  <\/p>\n<pre><code class=\"hljs\">\t\/*\n\t * \u5c04\u51fb\n\t *\/\n\tvoid FireButtonPressed();\/\/\u5f00\u706b\u6309\u4e0b\n\tvoid FireButtonReleased();\/\/\u5f00\u706b\u677e\u5f00\n\tvoid StartFireTimer();\/\/\u5f00\u59cb\u5c04\u51fb\u7684\u5b9a\u65f6\u5668\n\tUFUNCTION()\n\tvoid AutoFireReset();\/\/\u8fde\u7eed\u5f00\u706b\u91cd\u7f6e\n    virtual void FireWeapon();\/\/\u5f00\u706b<\/code><\/pre>\n<p style=\"margin-left:0;\">\n   \u5148\u58f0\u660e\u4e86\u4e00\u4e2a\u5f00\u706b\u6309\u4e0b\u548c\u5f00\u706b\u677e\u5f00\u7684\u65b9\u6cd5\uff0c\u5176\u4e2d\u6709\u4e00\u4e2abFireButtonPressed\u53d8\u91cf\u5224\u65ad\u662f\u5426\u5728\u5f00\u706b\uff0c\u6309\u4e0b\u7684\u65f6\u5019\u8bbe\u7f6e\u4e3atrue\uff0c\u677e\u5f00\u7684\u65f6\u5019\u8bbe\u7f6e\u4e3afalse\u3002\n  <\/p>\n<p style=\"margin-left:0;\">\n   \u6309\u4e0b\u7684\u65f6\u5019\u540c\u65f6\u4e5f\u4f1a\u53bb\u8c03\u7528StartFireTimer\uff0c\u8fd9\u91cc\u4f7f\u7528\u5b9a\u65f6\u5668\uff0c\u5728\u8fd9\u4e2a\u65b9\u6cd5\u91cc\u9762\u6709\u4e00\u4e2abShouldFire\u53d8\u91cf\u63a7\u5236\u662f\u5426\u80fd\u591f\u5f00\u53d1\uff0c\u4e00\u5f00\u59cb\u8bbe\u7f6e\u4e3atrue\uff0c\u662f\u7684\u8bddbShouldFire\u8bbe\u7f6e\u4e3afalse\uff0c\u6267\u884cFireWeapon\uff0cFireWeapon\u4f1a\u505a\u4e00\u4e9b\u653b\u51fb\u5c04\u7ebf\u68c0\u6d4b\u3001\u97f3\u6548\u3001\u7279\u6548\u7b49\u5de5\u4f5c\uff1b\u7136\u540e\u6267\u884c\u5b9a\u65f6\u5668\uff0c\u5b9a\u65f6\u8c03\u7528\u662f\u5426\u80fd\u591f\u91cd\u7f6eAutoFireReset\uff1b\u800c\u5728AutoFireReset\u4e2d\uff0cbShouldFire\u8bbe\u7f6e\u4e3atrue\uff0c\u53ef\u4ee5\u91cd\u65b0\u5f00\u706b\uff0c\u5982\u679c\u4ecd\u7136\u662f\u9f20\u6807\u6309\u4e0b\u7684\u72b6\u6001\uff0c\u5c31\u4f1a\u8fd4\u56de\u53bb\u7ee7\u7eed\u6267\u884cStartFireTimer\uff0c\u5982\u679c\u4e0d\u662f\u5c31\u4f1a\u628a\u5b9a\u65f6\u5668\u6e05\u9664\uff0c\u4e0d\u518d\u7ee7\u7eed\u6267\u884c\u3002\n  <\/p>\n<p style=\"margin-left:0;\">\n   \u8bf4\u660e\uff1aAutoFireReset\u524d\u52a0\u4e86\u4e00\u4e2a\u65b9\u6cd5\u5b8f\u6807\u8bb0\uff0c\u662f\u56e0\u4e3a\u8fd9\u4e2a\u65b9\u6cd5\u662f\u8981\u5728\u5b9a\u65f6\u5668\u4e2d\u5f15\u7528\uff0c\u53ea\u6709\u7528FUNCTION()\u6807\u8bb0\u4e86\u5f15\u64ce\u624d\u80fd\u6b63\u786e\u8c03\u7528\u3002FireWeapon\u524d\u52a0\u4e86\u4e00\u4e2avirtual\u662f\u628a\u8fd9\u4e2a\u65b9\u6cd5\u58f0\u660e\u4e3a\u865a\u51fd\u6570\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u5b50\u7c7b\u4e2d\u53bb\u91cd\u5199\uff0c\u53bb\u5b9e\u73b0\u4e0d\u540c\u5b50\u7c7b\u4e0d\u540c\u7684\u5c04\u51fb\u8868\u73b0\uff0c\u52a0\u4e0d\u52a0virtual\u53ef\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u53bb\u8c03\u6574\u3002\n  <\/p>\n<pre><code class=\"hljs\">\t\/*\n\t* \u662f\u5426\u53ef\u4ee5\u5f00\u706b\n\t*\/\n\tUPROPERTY(VisibleAnywhere,BlueprintReadOnly,Category=Properties,meta=(AllowPrivateAccess=\"true\"))\n\tbool bShouldFire;\n\t\n\t\/**\n\t * \u5f00\u706b\u6309\u94ae\u662f\u5426\u6309\u4e0b\n\t *\/\n\tUPROPERTY(VisibleAnywhere,BlueprintReadOnly,Category=Properties,meta=(AllowPrivateAccess=\"true\"))\n\tbool bFireButtonPressed;\n\n\t\/**\n\t * \u81ea\u52a8\u5f00\u706b\u91cd\u7f6e\u7684\u5b9a\u65f6\u5668\u53e5\u67c4\n\t *\/\n    FTimerHandle FireAutoResetTimerHandle;<\/code><\/pre>\n<p>\n   BaseCharacter.cpp\n  <\/p>\n<pre><code class=\"hljs\">void ABaseCharacter::FireButtonPressed()\n{\n\tbFireButtonPressed = true;\n\tStartFireTimer();\n}\n\nvoid ABaseCharacter::FireButtonReleased()\n{\n\tbFireButtonPressed = false;\n}\n\nvoid ABaseCharacter::StartFireTimer()\n{\n\tif (bShouldFire)\n\t{\n\t\tbShouldFire = false;\n\t\tFireWeapon();\n\t\tGetWorldTimerManager().SetTimer(FireAutoResetTimerHandle,this,&amp;ABaseCharacter::AutoFireReset,0.1f,false);\n\t}\n}\n\nvoid ABaseCharacter::AutoFireReset()\n{\n\tbShouldFire = true;\n\tif (bFireButtonPressed)\n\t{\n\t\tStartFireTimer();\n\t}\n\telse\n\t{\n\t\tGetWorldTimerManager().ClearTimer(FireAutoResetTimerHandle);\n\t}\n}\n\nvoid ABaseCharacter::FireWeapon()\n{\n\tif (GEngine)\n\t{\n\t\tGEngine-&gt;AddOnScreenDebugMessage(-1,5.0f,FColor::Green,TEXT(\"Fire!\"));\n\t}\n}\n\nvoid ABaseCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)\n{\n\tSuper::SetupPlayerInputComponent(PlayerInputComponent);\n\tPlayerInputComponent-&gt;BindAxis(\"MoveForward\",this,&amp;ABaseCharacter::MoveForward);\n\tPlayerInputComponent-&gt;BindAxis(\"MoveRight\",this,&amp;ABaseCharacter::MoveRight);\n\tPlayerInputComponent-&gt;BindAxis(\"Turn\",this,&amp;ABaseCharacter::Turn);\n\tPlayerInputComponent-&gt;BindAxis(\"LookUp\",this,&amp;ABaseCharacter::LookUp);\n\n\tPlayerInputComponent-&gt;BindAction(\"Jump\",IE_Pressed,this,&amp;ABaseCharacter::Jump);\n\tPlayerInputComponent-&gt;BindAction(\"Jump\",IE_Released,this,&amp;ABaseCharacter::StopJumping);\n\t\/\/\u5f00\u706b\n\tPlayerInputComponent-&gt;BindAction(\"FireButton\",IE_Pressed,this,&amp;ABaseCharacter::FireButtonPressed);\n\tPlayerInputComponent-&gt;BindAction(\"FireButton\",IE_Released,this,&amp;ABaseCharacter::FireButtonReleased);\n}<\/code><\/pre>\n<p style=\"margin-left:0;\">\n   \u8bb0\u5f97\u8981\u5728SetupPlayerInputComponent\u53bb\u7ed1\u5b9a\u5f00\u706b\u7684\u6620\u5c04\u3002\n  <\/p>\n<p style=\"margin-left:0;\">\n   \u5728StartFireTimer\u4e2dSetTimer\u7684\u53c2\u6570\uff0c0.1f\u662f\u4e00\u76f4\u6309\u4e0b\u7684\u65f6\u5019\u5b9a\u65f6\u5668\u4f1a\u6bcf\u96940.1\u79d2\u6267\u884c\u4e00\u6b21\uff0c\u8fd9\u4e2a\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u66f4\u6539\uff0c\u4e5f\u53ef\u4ee5\u58f0\u660e\u4e3a\u4e00\u4e2a\u53d8\u91cf\uff0c\u4f7f\u7528\u5c5e\u6027\u5b8f\u6807\u8bb0EditAnywhere\uff0c\u540e\u7eed\u53ef\u4ee5\u5728\u5f15\u64ce\u4e2d\u76f4\u63a5\u4fee\u6539\u3002\n  <\/p>\n<p style=\"margin-left:0;\">\n   \u5728FireWeapon\u4e2d\u6682\u65f6\u4f7f\u7528\u6253\u5370\u7684\u65b9\u5f0f\uff0c\u7f16\u8bd1\u8fd0\u884c\u4e4b\u540e\uff0c\u5982\u679c\u6211\u6bcf\u9694\u4e00\u79d2\u53bb\u70b9\u51fb\u9f20\u6807\u5de6\u952e\uff0c\u5171\u6309\u4e0b\u4e09\u6b21\uff0c\u5f15\u64ce\u7684\u6253\u5370\u4f1a\u51fa\u73b0\u4e09\u4e2aFire!\u7684\u6d88\u606f\uff0c\u5982\u679c\u4e00\u76f4\u6309\u4e0b\u9f20\u6807\u5de6\u952e\uff0c\u5728\u6ca1\u6709\u5b50\u5f39\u6570\u91cf\u9650\u5236\u7684\u60c5\u51b5\u4e0b\uff0c\u4f1a\u4e00\u76f4\u6253\u5370Fire!\u7684\u6d88\u606f\u3002\n  <\/p>\n<div class=\"img-center\">\n<figure class=\"image\"><figcaption>\n     \u70b9\u51fb\u5f00\u706b<br \/>\n    <\/figcaption><\/figure>\n<\/p><\/div>\n<div class=\"img-center\">\n<figure class=\"image\"><figcaption>\n     \u8fde\u7eed\u5f00\u706b<br \/>\n    <\/figcaption><\/figure>\n<\/p><\/div>\n<h3>\n   3.\u5bf9\u5e94\u4ee3\u7801<br \/>\n  <\/h3>\n<h4>\n   3.1 BaseCharacter.h<br \/>\n  <\/h4>\n<pre><code class=\"hljs\">#pragma once\n\n#include \"CoreMinimal.h\"\n#include \"GameFramework\/Character.h\"\n#include \"BaseCharacter.generated.h\"\n\nclass USpringArmComponent;\nclass UCameraComponent;\n\nUCLASS()\nclass SHOOTINGGAME_API ABaseCharacter : public ACharacter\n{\n\tGENERATED_BODY()\n\npublic:\n\tABaseCharacter();\n\nprotected:\n\tvirtual void BeginPlay() override;\n\t\/*\n\t * \u89d2\u8272\u79fb\u52a8\u548c\u89c6\u89d2\u67e5\u770b\n\t *\/\n\tvoid MoveForward(float Value);\n\tvoid MoveRight(float Value);\n\tvoid Turn(float Value);\n\tvoid LookUp(float Value);\n\t\/*\n\t * \u5c04\u51fb\n\t *\/\n\tvoid FireButtonPressed();\/\/\u5f00\u706b\u6309\u4e0b\n\tvoid FireButtonReleased();\/\/\u5f00\u706b\u677e\u5f00\n\tvoid StartFireTimer();\/\/\u5f00\u59cb\u5c04\u51fb\u7684\u5b9a\u65f6\u5668\n\tUFUNCTION()\n\tvoid AutoFireReset();\/\/\u8fde\u7eed\u5f00\u706b\u91cd\u7f6e\n\tvirtual void FireWeapon();\/\/\u5f00\u706b\n\npublic:\t\n\tvirtual void Tick(float DeltaTime) override;\n\tvirtual void SetupPlayerInputComponent(class UInputComponent* PlayerInputComponent) override;\n\nprivate:\n\t\/*\n\t * \u6444\u50cf\u673a\u81c2\n\t *\/\n\tUPROPERTY(VisibleAnywhere,BlueprintReadOnly,Category=Components,meta=(AllowPrivateAccess=\"true\"))\n\tUSpringArmComponent* CameraBoom;\n\n\t\/*\n\t * \u6444\u50cf\u673a\n\t *\/\n\tUPROPERTY(VisibleAnywhere,BlueprintReadOnly,Category=Components,meta=(AllowPrivateAccess=\"true\"))\n\tUCameraComponent* FollowCamera;\n\t\n\t\/*\n\t* \u662f\u5426\u53ef\u4ee5\u5f00\u706b\n\t*\/\n\tUPROPERTY(VisibleAnywhere,BlueprintReadOnly,Category=Properties,meta=(AllowPrivateAccess=\"true\"))\n\tbool bShouldFire;\n\t\n\t\/**\n\t * \u5f00\u706b\u6309\u94ae\u662f\u5426\u6309\u4e0b\n\t *\/\n\tUPROPERTY(VisibleAnywhere,BlueprintReadOnly,Category=Properties,meta=(AllowPrivateAccess=\"true\"))\n\tbool bFireButtonPressed;\n\n\t\/**\n\t * \u81ea\u52a8\u5f00\u706b\u91cd\u7f6e\u7684\u5b9a\u65f6\u5668\u53e5\u67c4\n\t *\/\n\tFTimerHandle FireAutoResetTimerHandle;\n\n};\n<\/code><\/pre>\n<h4>\n   3.2 BaseCharacter.cpp<br \/>\n  <\/h4>\n<pre><code class=\"hljs\">#include \"ShootingGame\/Public\/Gameplay\/BaseCharacter.h\"\n#include\"Camera\/CameraComponent.h\"\n#include\"GameFramework\/SpringArmComponent.h\"\n\nABaseCharacter::ABaseCharacter()\n{\n\tPrimaryActorTick.bCanEverTick = true;\n\tCameraBoom = CreateDefaultSubobject&lt;USpringArmComponent&gt;(TEXT(\"CameraBoom\"));\n\tCameraBoom-&gt;SetupAttachment(RootComponent);\n\tCameraBoom-&gt;bUsePawnControlRotation = true;\n\n\tFollowCamera = CreateDefaultSubobject&lt;UCameraComponent&gt;(TEXT(\"FollowCamera\"));\n\tFollowCamera-&gt;SetupAttachment(CameraBoom);\n\n\tbShouldFire = true;\n\tbFireButtonPressed = false;\n}\n\nvoid ABaseCharacter::BeginPlay()\n{\n\tSuper::BeginPlay();\n\t\n}\n\nvoid ABaseCharacter::MoveForward(float Value)\n{\n\tif (Controller &amp;&amp; Value != 0.0f)\n\t{\n\t\tconst FRotator ControlRotation = Controller-&gt;GetControlRotation();\n\t\tconst FRotator NewRotation = FRotator(0.0f,ControlRotation.Yaw,0.0f);\n\t\tconst FVector Dir = FRotationMatrix(NewRotation).GetUnitAxis(EAxis::X);\n\t\tAddMovementInput(Dir,Value);\n\t}\n}\n\nvoid ABaseCharacter::MoveRight(float Value)\n{\n\tif (Controller &amp;&amp; Value != 0.0f)\n\t{\n\t\tconst FRotator ControlRotation = Controller-&gt;GetControlRotation();\n\t\tconst FRotator NewRotation = FRotator(0.0f,ControlRotation.Yaw,0.0f);\n\t\tconst FVector Dir = FRotationMatrix(NewRotation).GetUnitAxis(EAxis::Y);\n\t\tAddMovementInput(Dir,Value);\n\t}\n}\n\nvoid ABaseCharacter::Turn(float Value)\n{\n\tAddControllerYawInput(Value*0.25f);\n}\n\nvoid ABaseCharacter::LookUp(float Value)\n{\n\tconst FRotator ControlRotation = Controller-&gt;GetControlRotation();\n\tconst float PitchValue = ControlRotation.Pitch;\n\t\/\/\u9650\u5236\u4e0a\u4e0b\u89c6\u89d2\n\tif (PitchValue &gt;= 30.0f &amp;&amp; PitchValue &lt; 180.0f &amp;&amp; Value &lt; 0.0f)\n\t{\n\t\treturn;\n\t}\n\tif (PitchValue &gt; 180.0f &amp;&amp; PitchValue &lt;= 280.0f &amp;&amp; Value &gt; 0.0f)\n\t{\n\t\treturn;\n\t}\n\tAddControllerPitchInput(Value*0.25f);\n}\n\nvoid ABaseCharacter::FireButtonPressed()\n{\n\tbFireButtonPressed = true;\n\tStartFireTimer();\n}\n\nvoid ABaseCharacter::FireButtonReleased()\n{\n\tbFireButtonPressed = false;\n}\n\nvoid ABaseCharacter::StartFireTimer()\n{\n\tif (bShouldFire)\n\t{\n\t\tbShouldFire = false;\n\t\tFireWeapon();\n\t\tGetWorldTimerManager().SetTimer(FireAutoResetTimerHandle,this,&amp;ABaseCharacter::AutoFireReset,0.1f,false);\n\t}\n}\n\nvoid ABaseCharacter::AutoFireReset()\n{\n\tbShouldFire = true;\n\tif (bFireButtonPressed)\n\t{\n\t\tStartFireTimer();\n\t}\n\telse\n\t{\n\t\tGetWorldTimerManager().ClearTimer(FireAutoResetTimerHandle);\n\t}\n}\n\nvoid ABaseCharacter::FireWeapon()\n{\n\tif (GEngine)\n\t{\n\t\tGEngine-&gt;AddOnScreenDebugMessage(-1,5.0f,FColor::Green,TEXT(\"Fire!\"));\n\t}\n}\n\nvoid ABaseCharacter::Tick(float DeltaTime)\n{\n\tSuper::Tick(DeltaTime);\n\n}\n\nvoid ABaseCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)\n{\n\tSuper::SetupPlayerInputComponent(PlayerInputComponent);\n\tPlayerInputComponent-&gt;BindAxis(\"MoveForward\",this,&amp;ABaseCharacter::MoveForward);\n\tPlayerInputComponent-&gt;BindAxis(\"MoveRight\",this,&amp;ABaseCharacter::MoveRight);\n\tPlayerInputComponent-&gt;BindAxis(\"Turn\",this,&amp;ABaseCharacter::Turn);\n\tPlayerInputComponent-&gt;BindAxis(\"LookUp\",this,&amp;ABaseCharacter::LookUp);\n\n\tPlayerInputComponent-&gt;BindAction(\"Jump\",IE_Pressed,this,&amp;ABaseCharacter::Jump);\n\tPlayerInputComponent-&gt;BindAction(\"Jump\",IE_Released,this,&amp;ABaseCharacter::StopJumping);\n\t\/\/\u5f00\u706b\n\tPlayerInputComponent-&gt;BindAction(\"FireButton\",IE_Pressed,this,&amp;ABaseCharacter::FireButtonPressed);\n\tPlayerInputComponent-&gt;BindAction(\"FireButton\",IE_Released,this,&amp;ABaseCharacter::FireButtonReleased);\n}\n\n<\/code><\/pre>\n<\/p><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u6dfb\u52a0\u4e3b\u754c\u9762\u548c\u51c6\u661f \u6dfb\u52a0\u5c04\u51fb\u6e38\u620f\u7684\u7784\u51c6\u51c6\u661f\uff0c\u65b9\u6cd5\u6709\u540c\u6837\u53ef\u4ee5\u53ea\u901a\u8fc7\u84dd\u56fe\u53bb\u521b\u5efa\u4f7f\u7528\uff0c\u6b64\u6b21\u4f1a\u540c\u4ecb\u7ecd\u52a8\u753b\u84dd\u56fe\u4e00\u6837\uff0c\u901a [&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-402","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>\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09 - \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\/04\/02\/\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u6dfb\u52a0\u4e3b\u754c\u9762\u548c\u51c6\u661f \u6dfb\u52a0\u5c04\u51fb\u6e38\u620f\u7684\u7784\u51c6\u51c6\u661f\uff0c\u65b9\u6cd5\u6709\u540c\u6837\u53ef\u4ee5\u53ea\u901a\u8fc7\u84dd\u56fe\u53bb\u521b\u5efa\u4f7f\u7528\uff0c\u6b64\u6b21\u4f1a\u540c\u4ecb\u7ecd\u52a8\u753b\u84dd\u56fe\u4e00\u6837\uff0c\u901a [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-01T22:00:22+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=\"4 \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\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/\"},\"author\":{\"name\":\"admin@wunen\",\"@id\":\"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8\"},\"headline\":\"\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09\",\"datePublished\":\"2025-04-01T22:00:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/\"},\"wordCount\":77,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.wunen.com\/#organization\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#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\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/\",\"url\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/\",\"name\":\"\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51\",\"isPartOf\":{\"@id\":\"https:\/\/www.wunen.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg\",\"datePublished\":\"2025-04-01T22:00:22+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#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\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wunen.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09\"}]},{\"@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":"\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09 - \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\/04\/02\/\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","og_description":"\u4e00\u3001\u6dfb\u52a0\u4e3b\u754c\u9762\u548c\u51c6\u661f \u6dfb\u52a0\u5c04\u51fb\u6e38\u620f\u7684\u7784\u51c6\u51c6\u661f\uff0c\u65b9\u6cd5\u6709\u540c\u6837\u53ef\u4ee5\u53ea\u901a\u8fc7\u84dd\u56fe\u53bb\u521b\u5efa\u4f7f\u7528\uff0c\u6b64\u6b21\u4f1a\u540c\u4ecb\u7ecd\u52a8\u753b\u84dd\u56fe\u4e00\u6837\uff0c\u901a [&hellip;]","og_url":"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09\/","og_site_name":"\u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","article_published_time":"2025-04-01T22:00:22+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":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#article","isPartOf":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/"},"author":{"name":"admin@wunen","@id":"https:\/\/www.wunen.com\/#\/schema\/person\/d5f7a6cf545656a9c90d507e64452db8"},"headline":"\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09","datePublished":"2025-04-01T22:00:22+00:00","mainEntityOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/"},"wordCount":77,"commentCount":0,"publisher":{"@id":"https:\/\/www.wunen.com\/#organization"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#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\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/","url":"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/","name":"\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09 - \u7269\u5ae9\u8f6f\u4ef6\u8d44\u8baf\u7f51","isPartOf":{"@id":"https:\/\/www.wunen.com\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#primaryimage"},"image":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#primaryimage"},"thumbnailUrl":"http:\/\/www.wunen.com\/wp-content\/uploads\/2025\/03\/\u8d44\u8baf.jpg","datePublished":"2025-04-01T22:00:22+00:00","breadcrumb":{"@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/www.wunen.com\/index.php\/2025\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#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\/04\/02\/%e5%b0%84%e5%87%bb%e6%b8%b8%e6%88%8f%e6%a1%88%e4%be%8b%ef%bc%88%e4%b8%89%ef%bc%89\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wunen.com\/"},{"@type":"ListItem","position":2,"name":"\u5c04\u51fb\u6e38\u620f\u6848\u4f8b\uff08\u4e09\uff09"}]},{"@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\/402","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=402"}],"version-history":[{"count":0,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/posts\/402\/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=402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/categories?post=402"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wunen.com\/index.php\/wp-json\/wp\/v2\/tags?post=402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}