バージョン

menu_open
Wwise SDK 2023.1.8
Creating Resource Files for Your Plug-in

The Resource file (with an .rc extension) describes the resources the plug-in uses to create a custom graphical interface. An easy way to manage Resource files is to use the Visual Studio Editor tool, which you can use to drag widgets onto a canvas to build the GUI. This section explains how to create a Resource file for a new plug-in.

Before you proceed, ensure that you are familiar with the development tools. Refer to 開発ツールを使う for more information.

To create a Resource file:

  1. Run the following command to create a plug-in. For the purposes of this procedure, select an "effect" type plug-in when prompted:
  2. Run the following commands to change to the plug-in directory and then call premake:
  3. Open the generated solution file (for example, MyPlugin_Authoring_Windows_vc160.sln) in Visual Studio 2019.
  4. In the Resource View, select the project name and in the menu bar, click Project > Add New Item. The Add New Item dialog opens.
  5. In the left pane, select Resource, then in the center pane select Resource File (.rc) and click Add. A Resource.rc file is created and appears under the project name in the Resource View. The file is located in the plug-in's WwisePlugin subdirectory.
  6. In the Resource View, right-click the Resource.rc file and click Add Resource. In the Add Resource dialog, select Dialog and click New. A dialog resource is created and appears in the editing pane.
  7. Set the following values in the Properties pane:
    • Appearance/Border: None
    • Appearance/Clip Children: True
    • Appearance/Style: Child
    • Misc/Control: True
    • Misc/Control Parent: True
  8. Drag any desired widgets from the Toolbox, located to the left of the editing pane, onto the dialog. When you are finished, click Save.
  9. From a command prompt in your plug-in directory, run the following two commands in order: The first command includes the Resource.rc file in your project, and the second creates a resource.h file based on the Resource file.
  10. In the plug-in's Win32 subdirectory, open the PluginNamePluginGUI.h file and add the following code: This code overrides the methods provided by AK::Wwise::Plugin::GUIWindows and ensures that the plug-in uses the custom interface.
  11. Add the following code to the PluginNamePluginGUI.cpp file:
  12. Save your changes and rebuild the plug-in. It is now available in Wwise as an Effect, which you can add to Wwise objects.
V1::GUIWindows GUIWindows
Latest version of the C++ GUIWindows interface.
Definition: GUIWindows.h:334

このページはお役に立ちましたか?

サポートは必要ですか?

ご質問や問題、ご不明点はございますか?お気軽にお問い合わせください。

サポートページをご確認ください

あなたのプロジェクトについて教えてください。ご不明な点はありませんか。

プロジェクトを登録していただくことで、ご利用開始のサポートをいたします。

Wwiseからはじめよう