#contents UE 4.13.0 C++については[[此方>http://com04.sakura.ne.jp/unreal/wiki/index.php?C%2B%2B]] * 参考 [#b8798747] - UE4でのPlugin開発記録メモ(PluginBrowserのTemplate作成機能を使って簡単にpluginを作るよ) - Qiita http://qiita.com/BlackMa9/items/e9c99ee2bf652bb91064 * 初期設定 [#occb1a01] + 新規でC++ プロジェクトを作成する &ref(plugin-startup-01.png,,60%); + メニューバーの「Edit」→「Plugins」でプラグインウィンドウを開く + プラグインウィンドウで右下の「New plugin」ボタンを押す &ref(plugin-startup-02.png,,60%); + 作るプラグインの種類を選択、名前を入力して「Create plugin」ボタンを押す &ref(plugin-startup-03.png,,60%); + 一旦落として再起動。リビルドするか聞かれたら「はい」 &ref(plugin-startup-04.png,,80%); + Pluginsフォルダの中にコードが存在する &ref(plugin-startup-05.png,,80%); ** プラグインの種類 [#k2a51acd] - Blank : - Toolbar Button : - Standalone Window : - Blueprint Library : - Editor Mode : - Third Party Library : * ツールバーに追加 [#x67e7700] [[プラグイン開発-ツールバーに追加]] * Levelのメニューバーに追加 [#p7a03315] ** メニューバーの子に追加 [#za89630b] メニューバー→「Window」の末尾に追加 FLevelEditorModule& LevelEditorModule = FModuleManager::LoadModuleChecked<FLevelEditorModule>("LevelEditor"); { TSharedPtr<FExtender> MenuExtender = MakeShareable(new FExtender()); MenuExtender->AddMenuExtension("WindowLayout", EExtensionHook::After, PluginCommands, FMenuExtensionDelegate::CreateRaw(this, &FToolbarPluginTestModule::AddMenuExtension)); LevelEditorModule.GetMenuExtensibilityManager()->AddExtender(MenuExtender); } |