BUG: Custom GUIs won't update once a parameter has been changed
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 35/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Domaine
- audio-video-rtc, game-dev
Piste de recherche
Construisez NativeCode et importez le binaire avec EqualizerCustomGUI.cs, GUIHelpers.cs et MathHelpers.cs dans un projet Unity. Reproduisez le problème avec deux instances de Demo Equalizer, puis inspectez IAudioEffectPluginGUI.OnGUI et les appels à SetFloatParameter/GetFloatParameter. Le travail est considéré comme terminé lorsque chaque interface graphique personnalisée reflète son instance de plug-in sélectionnée après la modification des paramètres, ou lorsque la limitation de Unity est documentée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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).
- Langage dominant
- C++
- Étoiles
- 171
- Forks
- 33
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de Unity-Technologies/NativeAudioPlugins
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 48/100
-
iOS build instructionsOuverte
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
Unity-Technologies/NativeAudioPlugins#16 · 1 commentaire ·
-
Difficulté 4/5 3-5 jours Accessibilité débutants 35/100
-
Difficulté 4/5 3-5 jours Accessibilité débutants 25/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 55/100
Toutes les issues de Unity-Technologies/NativeAudioPlugins
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
bug needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
microsoft/microsoft-ui-xaml#12515 · 1 commentaire · 1 réaction ·
Les mainteneurs répondent en général sous 2 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
FujiNetWIFI/fujinet-firmware#2261 ·
Les mainteneurs répondent en général sous 1 jour
-
bug difficulty: easy good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
nagisa-kamishiro/rosehip#73 ·
Les mainteneurs répondent en général sous 1 jour
-
bazel bug odb
Difficulté 1/5 Moins d'une heure Accessibilité débutants 80/100
The-OpenROAD-Project/OpenROAD#12095 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour