#A sound when people enter
27 messages · Page 1 of 1 (latest)
untested but should work fine , let me know if you have issues . @hasty adder
Quick Setup:
-
Create a New Script:
- Name it
ActorJoinSoundNotification.cs.
- Name it
-
Attach the Script:
- Attach the script to an empty GameObject in your scene.
-
Add Audio Source:
- Ensure the GameObject has an
AudioSourcecomponent. The script adds one if missing.
- Ensure the GameObject has an
-
Set Audio Mixer (For Spatial):
- In the AudioSource component, set the Audio Mixer property to ensure it plays correctly in Spatial.
-
Assign Sound:
- Drag and drop your desired sound file into the
joinSoundfield in the Unity Inspector.
- Drag and drop your desired sound file into the
-
Done!
- Now, whenever someone joins your Spatial world, you'll hear the sound.
Here's another option. This package contains a prefab, named EntraceAudioController, that uses Visual Scripting. All you (should) need to do is:
- Drag and drop the prefab into your scene hierarchy
- In the prefab's Audio Source, change the audio clip to something of your liking
- Republish your space
The included audio is a clip I extracted from one my streams many years ago; free to use for anyone lol
First screenshot is the contents of the Unity package; second screenshot is the EntranceAudioController's inspector, where you can see the boioioing audio clip is assigned (this is what you'd change).
Thank you!
This works perfectly
Yay! Glad to hear it.
The only thing I'd add to it would be a UI to toggle the sound on/off.
You mean for the visitors? Because I want to hear it every time someone enters. Do the visitors hear it too?
Visitors will not hear it.
oh good
For you, in the event you get some knuckleheads continually refreshing the page
Well, I can ban the knuckleheads right?
Yep!
Yay
I am sure I will be upgrading soon as I am very impressed with the help you guys provide
In fact, I'm upgrading now
Wait, there is no Paypal option to upgrade?
Or am I missing something
I am not comfortable with giving my credit card
Understandable. I do not believe the payment provider Spatial uses has a Paypal option.
well tell the devs to fix that hahah
lol will do
when it's an option I'll upgrade. I'm not sure if it's a percentage issue, but something will be better than nothing. Even if I have to pay a higher rate to use Paypal, I will. And if I am forced to use my credit card in the long run, I probably will. But I won't be happy about it. I think Spatial wants happy customers.
Ha, yes, happy customers are a good thing for everyone
I've paid with a credit card because I believe that what you guys are doing will be great. But I'd still be happier if there were a paypal option. 🙂
I do hope to see more options for payments in the future. I am not sure if others were ever considered in the past but I have shared your Paypal preference with the team.
The platform is amazing and I'm really glad you're enjoying it.
Ok I think I'll be leaving you guys alone, mostly, from now on. You've helped me get to the point where I wanted to be. I'll keep checking in on the discord and if I can help anybody else with what I've learned I will. Thank you, again, for all your help!