LORAY-PickupSound icon

PickupSound

Tool to play sounds when picking up a valuable item.

By LORAY
Last updated 14 hours ago
Total downloads 1039
Total rating 0 
Categories Tools Libraries Audio Valuables
Dependency string LORAY-PickupSound-1.0.3
Dependants 3 other packages depend on this package

README

PickupSound DLL for R.E.P.O.

This DLL provides an easy way to play pickup sounds for valuables you add to the game R.E.P.O. Add the DLL to your Unity project and attach the PickupSoundComponent to a valuable's prefab to play one or more sounds when it's picked up by the player.

Supported scenario

  • Attach per-prefab pickup sounds for valuables so a sound plays whenever a player picks one up.

Installation

  • Copy the DLL into the Assets folder of your Unity project.
  • If done correctly, it should look like this :

image

Usage (Editor)

  • Open the prefab for the valuable you want to add a pickup sound to.
  • In the Inspector, click Add Component and search for PickupSoundComponent.
  • Add the component to the prefab.
  • Add your sound(s) to the component's Sounds field (see image below)
  • Optionally adjust any exposed settings (volume, pitch, delay, spatial blend, etc.).
  • Save the prefab.

image

At runtime, when the player picks up that prefab, a random pickup sound will play automatically.

Notes & Troubleshooting

  • If the component does not appear in the Add Component list:
    • Try drag/dropping the PickupSoundComponent in the components list of the prefab.
  • If the sound doesn't play at runtime, check:
    • The Sounds are not empty.
    • The prefab instance in the scene uses the updated prefab with the component.
    • The game audio isn't muted and the master/AudioSource volumes are reasonable.

Contact

If you have any other issues to report, please do using my various social media profiles :

  • Discord (loray_guy)
  • GitHub (LORAY-guy)