Order of OnAudioFilterReadProxy
suzuki_i
There is a component named "OnAudioFilterReadProxy" which will be added automatically when I expose OnAudioFilterRead in my UDON code.
Currently, this component is added at the end of the components, but I would like this order to be after UdonBehaviour.
Log In
suzuki_i
Has there been any progress?
Lyuma
There is no
runtime
Unity API to add a component anywhere other than the end. Components can only be reordered in the editor.My suggestion, if this is important, is for VRCSDK to permit world creators to add this component before upload, and to use GetOrAddComponent<OnAudioFilterRead>() at runtime to reuse the component in the order it was added.
Why does the order matter?
suzuki_i
Lyuma: Audio is processed in order, starting with the top component.
Previously, it was possible to apply effects such as LPF, HPF, etc. to sounds generated by Udon, but the order was changed in a past update and effects can no longer be applied.
suzuki_i
(just after UdonBehaviour, and before other components)