BUG: Custom GUIs won't update once a parameter has been changed
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
調査の方向性
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.bundleon macOS) into the projects (assets) - also import
EqualizerCustomGUI.cs,GUIHelpers.cs,MathHelpers.csfromGUICode/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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Unity-Technologies/NativeAudioPlugins のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 48/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Unity-Technologies/NativeAudioPlugins#16 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
Unity-Technologies/NativeAudioPlugins の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Qiskit/qiskit-aer#2466 ·
-
feature request
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
status:needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
PX4/PX4-Autopilot#29006 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
Segfault in pwStreamAddBuffer: createBuffer() returning nullptr is dereferenced (Screencopy.cpp:943)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100