位置:首頁 > 軟件操作教程 > 游戲制作軟件 > UE4 > 問題詳情

UE4 連接節(jié)點(actor與立方體碰撞)

提問人:周麗平發(fā)布時間:2021-04-01

將勞點按如下方式連接,以完成程序。

1、將 “OnActorHit”的輸出項連接至“分支”的exec輸入項。

2、將“分支”的“真”連接至“Print String”的exec輸入項。

3、將 “OnActorHit” 的 “Other Actor” 連接至 “Get Display Name”(已連接)。

4、將 “OnActorHit” 的 “Other Actor” 連接至 “Actor Has Tag” 的“目標”。

5、將 “Display Name” 的 “Return Value” 連接至 “Print String” 的 “In String”。

6、將 “Actor Has Tag” 的 “Return Value” 連接至“分支”的 “Condition”。

7、為 “Actor Has Tag” 的 “Tag” 設置 “actor” 值。

OnActorHit事件發(fā)生后,會通過Actor Has Tag檢查是否有“actor”標簽,僅在分支結果為真時(= 有acto「標簽)執(zhí)行Print String 。

image.png

繼續(xù)查找其他問題的答案?

相關視頻回答
回復(0)
返回頂部