Add `PlayOneShot` to `AnimatorPlayAudio` Behavior
DarkSwordsman
This request is to add
PlayOneShot
as an option for the new avatar animator behavior AnimatorPlayAudio
.Fax mentioned that it currently only uses
Play
. However, I think having PlayOneShot
would be immensely useful for users that make guns or other complex things that need overlapping audio.Log In
MisutaaAsriel
Currently, this being "Play" only eliminates my primary use case: prop sounds.
I have 6+ different sound sources I could condense into one with PlayOneShot, but they wouldn't work with "Play".
Play really only adds benefit for mutually-exclusive audio as-is.
Yodokoro
Similar post from 2 years ago here.
It's definitely necessary feature.
NarryG
One big thing to consider with PlayOneShot is the current clamping behavior VRC does with AudioSources.
Clamping to three active at once provides various benefits.
It helps stay under the voice limit (PlayOneShot generates a new voice for every call), general performance, anti-abuse, etc.
If they were to implement PlayOneShot, it'd presumably require similar clamping, which would eliminate many use cases for it.
I think it would still be a worthwhile addition, but it would probably have to end up nerfed pretty hard.
ZenithVal
NarryG PlayOneShot even at 2 or 3 clamping would still be amazing imo. Mostly for fast hitting weapons or gunshots~
MisutaaAsriel
Play
should certainly be the default behavior, but PlayOneShot
would certainly be a nice, optional addition. Both have distinct behaviors which may be desirable or undesirable in different ways.