#Contact Reciever Audio Problems

1 messages · Page 1 of 1 (latest)

halcyon stirrup
#

Hey awwts! So I’ve been working on a magic menu for my awwter. Everything is working just fine, except for something cosmetic.

Currently, I have it set up so that the menu plays a sound when I touch a menu contact receiver, then toggles it off after.

The main issue is that, while the audio works just fine in Unity, it doesn’t work in VRchat. I’ve done what feels like everything to fix it, and I’m starting to get a bit frustrated. I know that the receivers are set up correctly, due to some other tests that I’ve ran.

Any tips would be greatly appreciated!! I’ll be happy to answer any questions that bring me a step closer to getting this working.

#

Contact Reciever Audio Problems

proven pelican
#

Give me one moment and I will give you an example:

#

Firstly, Make sure Volume is at 1, Priority is set to "high" (Which I failed to do in the example), Spatial Blend set to "3D", & make sure Volume Rolloff is set to "Linear Rolloff" as in my experience that causes less issues with VRChat and is easier to work with.

#

Now you will want to add a new script:

#

I leave the Gain and Far at defualt when the script is created, and I don't touch Near, or Volumetric Radius. Make sure Enable Spatialization is enabled, & Use AudioSorce Volume Curve is also enabled. This will make your audio 3D (No one likes 2D world Audio) and follow the Volume Curve (Audio distance) set by the Audio source:

#

And as always, make sure you have Avatar Audio on in settings. I normally set the volume to 70% & make sure earmuff mode is turned off as that CAN limit avatar Audio aswell.

proven pelican
#

Hope this helps!

halcyon stirrup
proven pelican
#

or your animation is not set correct

halcyon stirrup
halcyon stirrup
# proven pelican or your animation is not set correct

I can with 90% certainty say that my animations are set up properly. The animation to play the sound works just fine in Unity, and I set the sound enable animation to loop for testing reasons. The animation worked again in Unity, but not in vrchat in this case too.

proven pelican
#

and ur using an offical sdk

#

and

halcyon stirrup
#

I am using an official sdk, and its not set to android

halcyon stirrup
#

wait a second

#

I just swapped the original sound I had with the boop squeak sound effect for testing reasons

#

I didnt even change the audio source, but this time the sound effect worked

#

guh??

#

oh wait

#

I think I know the issue

#

To preface this: the spell menu is constrained to world space. I think that I couldn't hear the sound playing because the animation to bring the menu to me wouldn't bring the sound along with the menu.

#

I parented the sound to my head instead, and that seemed to fix it. I'll confirm this fix now

proven pelican
#

makes sense

halcyon stirrup
#

However, I think that this problem is two issues disguised as one

halcyon stirrup
#

I’ll post about my animations and whatnot tomorrow and see if those are the problem. I think that I did things properly, but you never know.

#

In a nutshell, I’m just using Any State and waiting for a bool to be toggled to true. According to Unity, everything is running as it should, but VRC seems to disagree meowsad

halcyon stirrup
#

Better late than never. Anyways, here is what my collision effects layer looks like, along with each collide animation. (Each collide animation does the same thing, just for each sound object that I need to enable). After the object is enabled, I disable it after.

halcyon stirrup
#

I have a sneaking suspicion that the problem I am having is out of my control somewhat. In the time that I have started this project, I have installed a bunch of plugins for unity that could have broken things. I'm just going to take a breath, recoup my losses, and redo the entire magic menu from the ground up in a backup since I now know what im doing

halcyon stirrup
#

Update: The issue was build and test mode being screwy, I literally had everything set up perfectly. Everything works now!