Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

BUG: Custom GUIs won't update once a parameter has been changed

オープン
#14 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
cpp, csharp, unity

調査の方向性

NativeCode をビルドし、EqualizerCustomGUI.cs、GUIHelpers.cs、MathHelpers.cs とともにバイナリを Unity プロジェクトにインポートします。2 つの Demo Equalizer インスタンスで問題を再現し、その後 IAudioEffectPluginGUI.OnGUI と SetFloatParameter/GetFloatParameter の呼び出しを調査します。パラメーターを変更した後、それぞれのカスタム GUI が選択されたプラグインインスタンスを反映するか、Unity の制限が文書化されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Summary

With two or more plug-in instances active in an AudioMixer (e.g. in two Groups), the Custom GUI won't reflect the plug-in parameter's state after a parameter has been set via the Custom GUI's script. It only shows the last set value independent of the plug-in instance.

In code words:

after calling

plugin.SetFloatParameter("parameterName", value);

in IAudioEffectPluginGUI's OnGUI(IAudioEffectPlugin plugin) method,

plugin.GetFloatParameter("parameterName", out float value);

always returns the value which was set most recently, independent on which plugin instance is currently selected.

Steps to reproduce

  • Clone / download the latest version of this repository
  • build the project in NativeCode
  • create a new Unity project
  • import the binary (e.g. AudioPluginDemo.bundle on macOS) into the projects (assets)
  • also import EqualizerCustomGUI.cs, GUIHelpers.cs, MathHelpers.cs from GUICode/AudioPluginDemoGUI
  • create an AudioMixer
  • create a new Group
  • add the Demo Equalizer plugin in both groups (Master and the new one)
  • move the sliders of LowFreq, MidFreq, and HighFreq in one of the instances (only sliders, NOT the editor)
  • switch back and forth between both plugins and verify that the state updates accordingly
  • move one of the vertical bars (black, grey, white) of one instances, see how the corresponding frequency slider changes (expected behaviour)
  • again: switch back and forth between the plugins, see that the rendered GUI won't update any more although the Horizontal Sliders do

I don't think this is a bug of this repository, but rather one in Unity itself. Or is there something you can do in the scripts to prevent this from happening?

This behaviour renders the CustomGUI feature unusable if the GUI is used to change parameter values and not only displays them (like in all the UI examples in this repository).

主要言語
C++
スター
169
フォーク
33
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Unity-Technologies/NativeAudioPlugins のほかの issue

Unity-Technologies/NativeAudioPlugins の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。