[UE] BP ActorComponentを動的にAddするには?

どうやってAddComponentするの?

Add Component by Class」で動的にActorComponentをAddすることができます。

今回は「AC_TestActorComponent」をAddします。

ComponentsウィンドウにAC_TestActorComponentが無いこともポイントです。

AC_TestActorComponentにAddComponentされた証拠を出すために
Event Begin PlayでOuter名を表示させます。

いざ実行すると、Outer名はしっかり表示されていますが、
Detailsにはコンポーネントが表示されていません。
どうして…?

Detailsに表示されるコンポーネントの条件があるらしい?

https://forums.unrealengine.com/t/components-added-at-runtime-dont-show-up-in-editor-details-panel/155064

They will not show up in the details panel no. They must be class-default objects to be shown there.

クラスデフォルトのコンポーネントじゃないと表示されないらしいです。
なるほどね。

参考文献