{"id":4208,"date":"2022-04-12T19:12:23","date_gmt":"2022-04-12T11:12:23","guid":{"rendered":"http:\/\/euhat.com\/wp\/?p=4208"},"modified":"2022-04-20T08:46:01","modified_gmt":"2022-04-20T00:46:01","slug":"ue4-blueprint-memo","status":"publish","type":"post","link":"http:\/\/euhat.com\/wp\/2022\/04\/12\/ue4-blueprint-memo\/","title":{"rendered":"UE4 blueprint memo"},"content":{"rendered":"<style>\n.euhat_no_indent {\n    padding: 0px;\n    margin:0px;\n}\n<\/style>\n<pre line=\"1\">\r\nLevel Viewport\r\n\tbp_test\r\n\t\tDetails\r\n\t\t\tActor\r\n\t\t\t\tTags\r\n\tBox Trigger\r\n\t\tActor Hidden in Game\r\n\r\n\r\nLevel Blueprint\r\n\t1\r\n\t\tDestroyActor\r\n\tEvent Tick\r\n\t\tGet All Actors with Tag\r\n\t\t\tGet Actor Location\r\n\t\t\tSet Actor Location\r\n\tAdd Event for Trigger Box 1\r\n\t\tOnActorBeginOverlap\r\n\t\t\tcast to ThirdPersonCharacter\r\n\t\t\t\tbegin_event\r\n\t\tOnActorEndOverlap\r\n\r\nbp_test: Event Graph\r\n\tEvent BeginPlay\r\n\t\tExec\r\n\t\t\tSequence\r\n\t\t\t\tDelay\r\n\t\t\t\t\tPrint String\r\n\t\t\t\tSet Timer by Event\r\n\t\t\t\t\tEvent\r\n\t\t\t\t\t\ttest_event\r\n\t\t\t\t\tReturn Value\r\n\t\t\t\t\t\tPromote to variable\r\n\t\t\t\t\t\t\tNew Var 1\r\n\t\t\tIf\r\n\t\t\t\tNew Var 0\r\n\t\t\t\t\ttrue\r\n\t\t\t\t\t\tPrint String\r\n\t\t\t\t\tfalse\r\n\t\t\t\t\t\tPrint String\r\n\tEvent Destroyed\r\n\t4\r\n\t\tNew Var 1\r\n\t\t\tClear and Invalidate Timer by Handle\r\n\t5\r\n\t\tArray Var 2\r\n\t\t\tFor Each Loop\r\n\t\t\tReverse for Each Loop\r\n\t6\r\n\t\tStruct Var 3 : Struct Type 3\r\n\t\t\tBreak Struct Type 3\r\n\t7\r\n\t\tEnum Var 4 : Enum Type 4\r\n\t\t\tSwitch on Enum Type 4\r\n\tAdd Timeline\r\n\t\tLerp Vector\r\n\t\t\tSet World Location\r\n\r\n\ttest_event: Custom Event\r\n\t\tExec\r\n\t\t\tDraw Debug Point\r\nThirdPersonCharacter : Event Graph\r\n\tbegin_event: Custom Event\r\n\tEvent Dispatchers\r\n\t\thitDemon\r\n\t1\r\n\t\thitDemon\r\nDemon1 : Event Graph\r\n\tGet Player Character\r\n\t\tcast to ThirdPersonCharacter\r\n\t\t\tbind event to hitDemon\r\n\t\t\t\tadd custom event\r\nDemon1\r\n\tDetails\r\n\t\tCollision\r\n\t\t\tCollision Presets\r\n\t\t\t\tCustom...\r\nThirdPersonCharacter : Blueprint\r\n\tComponents\r\n\t\tThirdPersonCharacter\r\n\t\t\tUse Controller Rotation Yaw\r\n\t\tCameraBoom\r\n\t\t\tUse Pawn Control Rotation\r\n\t\tCharacterMovement\r\n\t\t\tOrient Rotation to Movement\r\n\t1\r\n\t\tCapsule Component\r\n\t\t\tGet Word Location as Start\r\n\t\t\tGet Forward Vector\r\n\t\t\t\tx 10000\r\n\t\t\t\t\t+ Get World Location\r\n\t\t\t\t\t\tas End\r\n\t\t\t\t\t\t\tLine Trace By Channel\r\nGet Player Controller\r\n\tShow Mouse Cursor\r\n\tConvertMouseLocationToWorldSpace\r\n\r\nLevel Blueprint\r\n\tQ\r\n\t\tCubeMesh\r\n\t\t\tStatic Mesh Component\r\n\t\t\t\tCreate Dynamic Material Instance\r\n\t\t\t\t\tSet Vector Parameter Value\r\n\t\t\t\t\t\tParameter Name : cube_color4\r\n\t\t\t\t\t\r\nMat_cube asigned to CubeMesh\r\n\tcube_color4 : Constant3Vector\r\n\t\tBase Color\r\n<\/pre>\n<p>In Actor Blueprint, enable input event,<\/p>\n<pre line=\"1\">\r\nbp_test: Event Graph\r\n\tEvent BeginPlay\r\n\t\tGet Player Controller\r\n\t\t\tEnable Input\r\n<\/pre>\n<p>Questions,<\/p>\n<ul class=\"euhat_no_indent\">\n<li>\nWhy can't 'Delay' function be used in 'While Loop'?\n<\/li>\n<li>\nIn Game mode, can't control previous character while incarnating into a new character?<\/p>\n<pre line=\"1\">\r\nThirdPersonCharactor1\r\n\tDetails\r\n\t\tPawn\r\n\t\t\tAuto Possess Player\r\n\t\t\t\tPlayer 0\r\n<\/pre>\n<\/li>\n<\/ul>\n<p>refer to:<br \/>\n<a href=\"https:\/\/www.bilibili.com\/video\/BV1MD4y1S7QW\">\u6211\u662f\u4e00\u53ea\u597d\u86cbYEAH<\/a><br \/>\n<a href=\"https:\/\/blog.csdn.net\/sunday7279\/article\/details\/88665577\" rel=\"nofollow\">https:\/\/blog.csdn.net\/sunday7279\/article\/details\/88665577<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Level Viewport bp_test Details Actor Tags Box Trigger Actor Hidden in Game Level Blueprint 1 DestroyActor Event Tick Get All Actors with Tag Get Actor Location Set Actor Location Add Event for Trigger Box 1 OnActorBeginOverlap cast to ThirdPersonCharacter begin_event OnActorEndOverlap bp_test: Event Graph Event BeginPlay Exec Sequence Delay Print String Set Timer by Event ... <a title=\"UE4 blueprint memo\" class=\"read-more\" href=\"http:\/\/euhat.com\/wp\/2022\/04\/12\/ue4-blueprint-memo\/\" aria-label=\"More on UE4 blueprint memo\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[791,266],"_links":{"self":[{"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/posts\/4208"}],"collection":[{"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/comments?post=4208"}],"version-history":[{"count":43,"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/posts\/4208\/revisions"}],"predecessor-version":[{"id":4315,"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/posts\/4208\/revisions\/4315"}],"wp:attachment":[{"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/media?parent=4208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/categories?post=4208"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/euhat.com\/wp\/wp-json\/wp\/v2\/tags?post=4208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}