http://www.v5xy.com/?p=858

UE4的组件分为两种:USceneComponent, UActorComponent

UE4 Runtime下动态给Actor添加组件


UActorComponent

(NewObject(this)一定要带Outer参数)

UE4 Runtime下动态给Actor添加组件



可以在编辑器里面查看到这个两个组件已经挂载在Actor下。

相关文章:

  • 2022-01-12
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2021-12-16
  • 2022-12-23
相关资源
相似解决方案