Table of Contents

Class SoundSfxObject

ScriptableObject containing sound effects for the third-person controller. Create via: Create > WitShells > ThirdPersonControl > Sound Effects

public class SoundSfxObject : ScriptableObject
Inheritance
SoundSfxObject

Fields

FootstepSounds

public AudioClip[] FootstepSounds

Field Value

AudioClip[]

jumpSound

public AudioClip jumpSound

Field Value

AudioClip

landSound

public AudioClip landSound

Field Value

AudioClip

Properties

Volume

Master volume for all sounds.

public float Volume { get; set; }

Property Value

float

Methods

PlayClip(AudioClip, Vector3)

Plays a specific audio clip at the given position.

public void PlayClip(AudioClip clip, Vector3 position)

Parameters

clip AudioClip
position Vector3

PlayClip(AudioClip, Vector3, float)

Plays a specific audio clip at the given position with custom volume.

public void PlayClip(AudioClip clip, Vector3 position, float customVolume)

Parameters

clip AudioClip
position Vector3
customVolume float

PlayFootStep(Vector3)

Plays a random footstep sound at the specified position.

public void PlayFootStep(Vector3 position)

Parameters

position Vector3

PlayJumpSound(Vector3)

Plays the jump sound at the specified position.

public void PlayJumpSound(Vector3 position)

Parameters

position Vector3

PlayLandSound(Vector3)

Plays the landing sound at the specified position.

public void PlayLandSound(Vector3 position)

Parameters

position Vector3