0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【UE5】自作のCharacterとPlayerControllerを連結する

Last updated at Posted at 2023-08-06

今回は時間が無いため画像はあとで貼ります

◯テーマ
この2つを連結させたい
自作の「Characterを継承したBP」
自作の「PlayerControllerを継承したBP」

◯前提条件
・WorldSettingsでのDefaultPawnClassをNoneにしたい
 →「自作のGameModeにて二人分の自作Character」を管理したいから
・自作したPlayerControllerはWorldSettingsでセット
スクリーンショット 2023-08-06 231652.png

◯問題点
・自作のCharacterは「AddInputMovement」では動かない
・GetControllerでもNullが返却される

スクリーンショット 2023-08-06 234336.png

◯解決策
自作のCharacter → Pawn → Auto Possess Player → Player0に変更すること

スクリーンショット 2023-08-06 231652.png

おそらく、WorldSettingsで設定されている自作のPlayerControllerを自動的に結びつけてくれるみたい
Player1では反応はなし

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?