HOW TO ADD FOOTSTEPS SOUND IN UNITY 3-D

HOW TO ADD FOOTSTEPS SOUND IN UNITY 3-D

unity creators

4 года назад

9,091 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@danielkorner9716
@danielkorner9716 - 30.01.2022 00:32

For all those who don't have such a good result as in the video. I've tried this and I'm happy with it.

public SoundControler SoundControler;
vector3 last position;

// Start is called before the first frame update
void start()
{

}

// Update is called once per frame
void update()
{
Step();
}

void step()
{
vector3 currentposition = lastposition - transform.position;
if (currentPosition.magnitude > 0.9f && !soundControler.IsPlaying)
{
lastPosition = transform.position;
SoundManager.Instance.PlaySound("Step", SoundGroup.Sound);
}
}

You just need to swap out the sound controller and sound manager.

Ответить
@thehell6759
@thehell6759 - 09.10.2021 23:04

King

Ответить
@evansoto6026
@evansoto6026 - 21.05.2021 01:15

why

Ответить
@Hyphen3372
@Hyphen3372 - 03.05.2021 10:56

thanks unity creators, very cool

Ответить
@AM-bo5go
@AM-bo5go - 03.11.2020 12:13

I tried this and it didnt work, please help

Ответить
@yacineselmoune5852
@yacineselmoune5852 - 21.08.2020 22:12

what do you mean by source code available soon x)

Ответить
@mattlegge8538
@mattlegge8538 - 29.06.2020 23:55

I hate these videos without commentary.

Ответить
@Ilinaxu
@Ilinaxu - 16.06.2020 18:10

i did what u did but its says
Assets\Scripts\PlayerSprint.cs(59,30): error CS1061: 'PlayerFootsteps' does not contain a definition for 'volume' and no accessible extension method 'volume' accepting a first argument of type 'PlayerFootsteps' could be found (are you missing a using directive or an assembly reference?)

Ответить
@virtuosogames3664
@virtuosogames3664 - 08.06.2020 20:55

could you please post the script for the footsteps?

Ответить
@rune2161
@rune2161 - 21.05.2020 17:36

can you post the code?

Ответить
@thelvadam5834
@thelvadam5834 - 17.05.2020 00:17

Do I still have to put sprint distance if I don’t have sprinting in my game?

Ответить
@BleachBoyGaming
@BleachBoyGaming - 03.11.2019 16:01

Thanks so much, great video

Ответить
@Wisdom-threads1
@Wisdom-threads1 - 24.10.2019 13:10

thanks bro

Ответить