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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...