{"id":2343,"date":"2024-04-19T20:24:44","date_gmt":"2024-04-19T12:24:44","guid":{"rendered":"https:\/\/courtship.top\/?p=2343"},"modified":"2024-04-19T20:24:44","modified_gmt":"2024-04-19T12:24:44","slug":"%e8%a7%84%e9%81%bf%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f%e5%8a%a0%e8%bd%bd%e9%a1%ba%e5%ba%8f%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/courtship.top\/index.php\/2024\/04\/19\/%e8%a7%84%e9%81%bf%e7%94%9f%e5%91%bd%e5%91%a8%e6%9c%9f%e5%8a%a0%e8%bd%bd%e9%a1%ba%e5%ba%8f%e9%97%ae%e9%a2%98\/","title":{"rendered":"\u89c4\u907f\u751f\u547d\u5468\u671f\u52a0\u8f7d\u987a\u5e8f\u95ee\u9898"},"content":{"rendered":"\n<p>\u6709\u7684\u7ec4\u4ef6\u53ef\u80fd\u5728\u4e00\u4e2atick\u91cc\u5148\u540e\u52a0\u8f7d\uff0c\u4f8b\u5982\u5728Beginplay\u91cc\u9700\u8981\u8c03\u7528Owner\u7684\u53e6\u4e00\u4e2a\u7ec4\u4ef6\u65f6\uff0c\u53ef\u80fd\u56e0\u4e3a\u8fd8\u6ca1\u52a0\u8f7d\u597d\u5c31\u62ff\u4e0d\u5230\uff0c\u548b\u529e\uff1f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u7528\u5b9a\u65f6\u5668<\/h2>\n\n\n\n<p>\u5982\u4e0b\u4ee3\u7801\u6240\u793a\uff0c\u76f4\u63a5\u5728\u4e0b\u4e00\u4e2atick\u8dd1\u903b\u8f91<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>void UOdyAIPerceptionComponent::BeginPlay()\n{\n\tSuper::BeginPlay();\n\tGetWorld()->GetTimerManager().SetTimerForNextTick(&#91;this]\n\t{\n            if (!IsValid(AIOwner))\n            {\n                return;\n            }\n\t});\n}<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f9d\u9760\u751f\u547d\u5468\u671f<\/h2>\n\n\n\n<p>\u76f4\u63a5\u5728\u751f\u547d\u5468\u671f\u7684\u540e\u4e00\u4e2a\u9636\u6bb5\u505a\u903b\u8f91<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">AActor:<\/h3>\n\n\n\n<p><a href=\"https:\/\/www.brightdevelopers.com\/unreal-engine-4-game-flow-actor-lifecycle-overview\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/www.brightdevelopers.com\/unreal-engine-4-game-flow-actor-lifecycle-overview<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">UActorComponent\uff1a<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>UActorComponent::OnComponentCreated<\/li>\n\n\n\n<li>UActorComponent::OnRegister<\/li>\n\n\n\n<li>UActorComponent::InitializeComponent<\/li>\n\n\n\n<li>UActorComponent::BeginPlay<\/li>\n\n\n\n<li>UActorComponent::TickComponent<\/li>\n\n\n\n<li>UActorComponent::EndPlay<\/li>\n\n\n\n<li>UActorComponent::UninitializeComponent<\/li>\n\n\n\n<li>UActorComponent::OnUnregister<\/li>\n\n\n\n<li>UActorComponent::OnComponentDestroyed<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u7684\u7ec4\u4ef6\u53ef\u80fd\u5728\u4e00\u4e2atick\u91cc\u5148\u540e\u52a0\u8f7d\uff0c\u4f8b\u5982\u5728Beginplay\u91cc\u9700\u8981\u8c03\u7528Owner\u7684\u53e6\u4e00\u4e2a\u7ec4\u4ef6\u65f6\uff0c\u53ef\u80fd\u56e0\u4e3a\u8fd8\u6ca1\u52a0\u8f7d\u597d\u5c31\u62ff\u4e0d\u5230\uff0c\u548b\u529e &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[12],"tags":[],"class_list":["post-2343","post","type-post","status-publish","format-standard","hentry","category-ue"],"_links":{"self":[{"href":"https:\/\/courtship.top\/index.php\/wp-json\/wp\/v2\/posts\/2343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courtship.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courtship.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courtship.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/courtship.top\/index.php\/wp-json\/wp\/v2\/comments?post=2343"}],"version-history":[{"count":2,"href":"https:\/\/courtship.top\/index.php\/wp-json\/wp\/v2\/posts\/2343\/revisions"}],"predecessor-version":[{"id":2345,"href":"https:\/\/courtship.top\/index.php\/wp-json\/wp\/v2\/posts\/2343\/revisions\/2345"}],"wp:attachment":[{"href":"https:\/\/courtship.top\/index.php\/wp-json\/wp\/v2\/media?parent=2343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courtship.top\/index.php\/wp-json\/wp\/v2\/categories?post=2343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courtship.top\/index.php\/wp-json\/wp\/v2\/tags?post=2343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}