Jump to content

Please help me with "blocks with sounds"


Recommended Posts

Hello, dear modders! I have a question about creating blocks with sounds. For example, a refrigerator emits a specific "rattling" sound and some signs emit a "bzzz" sound. But in the xml files I didn't find a direct connection between blocks and sounds. Can someone suggest how to "attach" sounds to the blocks?

Link to comment
Share on other sites

On 7/4/2022 at 9:22 AM, Cranberry Monster said:

Sounds are usually attached to blocks in Unity, AFAIK. You have a game object, and inside it is the block as well as an audio source. The audio can be looped, set to roll off based on distance, etc.

indeed! I was able to make curtains with the sound of swaying cloth, thanks:)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...