#A sound when people enter

27 messages · Page 1 of 1 (latest)

hasty adder
#

I usually have my Spatial world open on a 3rd monitor but I can 't always watch it to see when people join. It would be nice if there were a sound to notify me when people come in. How would I make that happen in Unity? Would I add a trigger, or something, at the entry point when they land on it?

midnight trout
#

untested but should work fine , let me know if you have issues . @hasty adder

Quick Setup:

  1. Create a New Script:

    • Name it ActorJoinSoundNotification.cs.
  2. Attach the Script:

    • Attach the script to an empty GameObject in your scene.
  3. Add Audio Source:

    • Ensure the GameObject has an AudioSource component. The script adds one if missing.
  4. Set Audio Mixer (For Spatial):

    • In the AudioSource component, set the Audio Mixer property to ensure it plays correctly in Spatial.
  5. Assign Sound:

    • Drag and drop your desired sound file into the joinSound field in the Unity Inspector.
  6. Done!

    • Now, whenever someone joins your Spatial world, you'll hear the sound.
sour vector
#

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).

sour vector
hasty adder
sour vector
#

Visitors will not hear it.

hasty adder
sour vector
#

For you, in the event you get some knuckleheads continually refreshing the page

hasty adder
sour vector
#

Yep!

hasty adder
#

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

sour vector
hasty adder
#

well tell the devs to fix that hahah

sour vector
#

lol will do

hasty adder
#

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.

sour vector
hasty adder
sour vector
#

The platform is amazing and I'm really glad you're enjoying it.

hasty adder