|
Post by musicpal on Aug 9, 2016 5:07:07 GMT
Hi Friends Trying to trigger a sound on collision. In this example I have a Box, a Floor and a BoxHitFloor sound (3D sound, no loop, stream from disk). The Box is a rigid body and has a box collider, "Is Trigger" is unchecked. The Floor is not a rigid body and has no box collider. The floor is tagged "Floor" The sound is not assigned to a bus and is the only sound in its group. I have attached an Master Audio Event Sound to the box with these settings - Sound Spawn Mode: Master Audio Location
- Unity UI Version: Legacy
- Event to Activate: Collision Enter
- Tag filter: ticked
- Tag Match 1: Floor
- Action name: HitFloor
- Action Type: Play Sound
- Sound Group: BoxHitFloor
- All other settings (default)
Thanks in advance for your help
MusicPal
|
|
|
Post by DarkTonic Dev on Aug 9, 2016 5:47:22 GMT
You cannot have a collision or trigger occur because the floor has no collider. Both parties must have a collider. Try it with a collider. You can set it to "trigger"
|
|