Warning: Declaration of action_plugin_linebreak::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/stepism/www/ue4/wiki/lib/plugins/linebreak/action.php on line 41

Warning: Declaration of action_plugin_markdownextra::register(&$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/stepism/www/ue4/wiki/lib/plugins/markdownextra/action.php on line 16

Warning: Declaration of action_plugin_syntaxhighlighter3_action::register(Doku_Event_Handler &$controller) should be compatible with DokuWiki_Action_Plugin::register(Doku_Event_Handler $controller) in /home/stepism/www/ue4/wiki/lib/plugins/syntaxhighlighter3/action/action.php on line 28
====== コンポーネントの追加(4.7.6) ====== ===== ブループリント版 ===== {{:wiki:ue4:tips:ue4_addcomponent_bp.png?300|}} ブループリントの場合は「Add(追加) Component」でノードを探せば色々出くるので任意のコンポーネントを追加します。 \\ \\ ===== C++版 ===== #include "BillboardActorComponent.h" // コンポーネント追加用 // コンストラクタ AMyActor::AMyActor() { // ビルボードオブジェクト生成 UBillboardActorComponent* Billboard = CreateDefaultSubobject(TEXT("UBillboardActorComponent")); // コンポーネント追加 Super::AddComponent(FName("BillboardActorComponent"), false, FTransform(), Billboard); } 「CreateDefaultSubobject」は初期化時にしか使えないので注意すること。