LORAY-PutdownSound icon

PutdownSound

Tool to play sounds when putting down a valuable item.

By LORAY
Last updated 4 days ago
Total downloads 1177
Total rating 0 
Categories Tools Libraries Audio Valuables
Dependency string LORAY-PutdownSound-1.0.0
Dependants 1 other package depends on this package

README

Putdown DLL for R.E.P.O.

This DLL provides an easy way to play putdown sounds for valuables you add to the game R.E.P.O. Add the DLL to your Unity project and attach the PutdownSoundComponent 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 putdown sound to.
  • In the Inspector, click Add Component and search for PutdownSoundComponent.
  • 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 drops 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 PutdownSoundComponent 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)