Announcement

Collapse
No announcement yet.

APawn 和 CharacterMovementComponent 可以适配吗

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    APawn 和 CharacterMovementComponent 可以适配吗

    Starter with unreal. I build a pawn actor,and use createdefaultsubcomponent give it a UCharacterMovementComponent, but when I use AddMovementInput API ,it doesn't cause any effect in game, so I wander if is because UCharacterMovementComponent can only work with ACharacter actor ?

    刚接触unreal的C++不太久,在 pawn 组件中手动 create 了 UCharacterMovementComponent ,但 AddMovementInput 没有效果,想问下是因为只有 ACharacter 才能被 ACharacter Movement Component 组件执行移动
    或者相关的论坛教程各位大佬们帮帮忙

    #2
    pawn不能和characterMovement配合,characterMovement只能和character配合,你可以使用pawnmovement

    Comment


      #3
      Originally posted by TYS_1 View Post
      pawn不能和characterMovement配合,characterMovement只能和character配合,你可以使用pawnmovement
      哦哦,好的,我昨天还试了试蓝图,似乎蓝图根本不能手动加 characterMovement 我就把我的主角改成 character了

      Comment

      Working...
      X