Answered
0
0

Unity 5.

I’m trying to terminate a StudioEventEmitter’s sound output when the player collides with it. It’s a power-up collectible that has an idle sound, basically.

I went to OnTriggerEnter() for said object, and added the line “powerPulse.Stop()” (powerPulse is set to the instance gameObject.GetComponent()). However, in testing, the sound continues to play back in 3D space, where the object was terminated.
Is there something I’m missing? Is it because the sound is infinitely looping?

  • You must to post comments
Best Answer
0
0

That all seems like it should work. Are there any errors in the Console?

If there are multiple emitters on the game object GetComponent() will point to the first one, which may not be correct.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.