TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.Feedbacks.MMF_MMSoundManagerSound Class Reference

This feedback will let you play a sound via the MMSoundManager. You will need a game object in your scene with a MMSoundManager object on it for this to work. More...

Inheritance diagram for MoreMountains.Feedbacks.MMF_MMSoundManagerSound:
MoreMountains.Feedbacks.MMF_Feedback

Public Types

enum  Sources { AudioClip , AudioResource }

Public Member Functions

override void InitializeCustomAttributes ()
 Initializes the debug buttons.
virtual void RandomizeTimes ()
 Randomizes playback time and playback duration.
override void OnDrawGizmosSelectedHandler ()
 Triggered when the host MMF Player gets selected, can be used to draw gizmos.
override void AutomaticShakerSetup ()
 Automatically tries to add a MMSoundManager to the scene if none are present.
virtual async void TestPlaySound ()
 A test method that creates an audiosource, plays it, and destroys itself after play.
virtual void ResetSequentialIndex ()
 Forces a reset of the sequential index to 0.
virtual void SetSequentialIndex (int newIndex)
 Forces a reset of the sequential index to the value specified in parameters.
override void OnValidate ()
 On validate we randomize our times.

Public Attributes

Sources Source = Sources.AudioClip
 whether this feedback should play an audio clip or an AudioResource
AudioClip Sfx
 the sound clip to play
AudioResource AudioResourceToPlay
 alternatively, instead of an audio clip you can specify an AudioResource, in which case the Sfx above will be ignored, and the AudioResource will be used
AudioClip[] RandomSfx
 an array to pick a random sfx from
bool SequentialOrder = false
 if this is true, random sfx audio clips will be played in sequential order instead of at random
bool SequentialOrderHoldLast = false
 if we're in sequential order, determines whether or not to hold at the last index, until either a cooldown is met, or the ResetSequentialIndex method is called
float SequentialOrderHoldCooldownDuration = 2f
 if we're in sequential order hold last mode, index will reset to 0 automatically after this duration, unless it's 0, in which case it'll be ignored
bool RandomUnique = false
 if this is true, sfx will be picked at random until all have been played. once this happens, the list is shuffled again, and it starts over
MMF_MMSoundManagerSoundData SoundDataSO
 a scriptable object (created via the Create/MoreMountains/Audio/MMF_SoundData menu) to define settings that will override all other settings on this feedback
float MinVolume = 1f
 the minimum volume to play the sound at
float MaxVolume = 1f
 the maximum volume to play the sound at
float MinPitch = 1f
 the minimum pitch to play the sound at
float MaxPitch = 1f
 the maximum pitch to play the sound at
MMSoundManager.MMSoundManagerTracks MmSoundManagerTrack = MMSoundManager.MMSoundManagerTracks.Sfx
 the track on which to play the sound. Pick the one that matches the nature of your sound
int ID = 0
 the ID of the sound. This is useful if you plan on using sound control feedbacks on it afterwards.
AudioMixerGroup AudioGroup = null
 the AudioGroup on which to play the sound. If you're already targeting a preset track, you can leave it blank, otherwise the group you specify here will override it.
AudioSource RecycleAudioSource = null
 if (for some reason) you've already got an audiosource and wouldn't like to use the built-in pool system, you can specify it here
bool Loop = false
 whether or not this sound should loop
bool Persistent = false
 whether or not this sound should continue playing when transitioning to another scene
bool DoNotPlayIfClipAlreadyPlaying = false
 whether or not this sound should play if the same sound clip is already playing
int MaximumConcurrentInstances = 3
 the maximum amount of instances of this sound allowed to play at once. use -1 for unlimited concurrent plays
bool StopSoundOnFeedbackStop = false
 if this is true, this sound will stop playing when stopping the feedback
bool FadeIn = false
 whether or not to fade this sound in when playing it
float FadeInInitialVolume = 0f
 if fading, the volume at which to start the fade
float FadeInDuration = 1f
 if fading, the duration of the fade, in seconds
MMTweenType FadeInTween = new MMTweenType(MMTween.MMTweenCurve.EaseInOutQuartic, "FadeIn")
 if fading, the tween over which to fade the sound
bool FadeOutOnStop = false
 whether or not to fade this sound in when stopping the feedback
float FadeOutDuration = 1f
 if fading out, the duration of the fade, in seconds
MMTweenType FadeOutTween = new MMTweenType(MMTween.MMTweenCurve.EaseInOutQuartic, "FadeOutOnStop")
 if fading out, the tween over which to fade the sound
bool SoloSingleTrack = false
 whether or not this sound should play in solo mode over its destination track. If yes, all other sounds on that track will be muted when this sound starts playing
bool SoloAllTracks = false
 whether or not this sound should play in solo mode over all other tracks. If yes, all other tracks will be muted when this sound starts playing
bool AutoUnSoloOnEnd = false
 if in any of the above solo modes, AutoUnSoloOnEnd will unmute the track(s) automatically once that sound stops playing
float PanStereo
 Pans a playing sound in a stereo way (left or right). This only applies to sounds that are Mono or Stereo.
float SpatialBlend
 Sets how much this AudioSource is affected by 3D spatialisation calculations (attenuation, doppler etc). 0.0 makes the sound full 2D, 1.0 makes it full 3D.
Transform AttachToTransform
 a Transform this sound can 'attach' to and follow it along as it plays
bool BypassEffects = false
 Bypass effects (Applied from filter components or global listener filters).
bool BypassListenerEffects = false
 When set global effects on the AudioListener will not be applied to the audio signal generated by the AudioSource. Does not apply if the AudioSource is playing into a mixer group.
bool BypassReverbZones = false
 When set doesn't route the signal from an AudioSource into the global reverb associated with reverb zones.
int Priority = 128
 Sets the priority of the AudioSource.
float ReverbZoneMix = 1f
 The amount by which the signal from the AudioSource will be mixed into the global reverb associated with the Reverb Zones.
Vector2 PlaybackTime = new Vector2(0f, 0f)
 a timestamp (in seconds, randomized between the defined min and max) at which the sound will start playing, equivalent to the Audiosource API's Time)
Vector2 PlaybackDuration = new Vector2(0f, 0f)
 a duration (in seconds, randomized between the defined min and max) for which the sound will play before stopping. Ignored if min and max are zero.
float DopplerLevel = 1f
 Sets the Doppler scale for this AudioSource.
int Spread = 0
 Sets the spread angle (in degrees) of a 3d stereo or multichannel sound in speaker space.
AudioRolloffMode RolloffMode = AudioRolloffMode.Logarithmic
 Sets/Gets how the AudioSource attenuates over distance.
float MinDistance = 1f
 Within the Min distance the AudioSource will cease to grow louder in volume.
float MaxDistance = 500f
 (Logarithmic rolloff) MaxDistance is the distance a sound stops attenuating at.
bool UseCustomRolloffCurve = false
 whether or not to use a custom curve for custom volume rolloff
AnimationCurve CustomRolloffCurve
 the curve to use for custom volume rolloff if UseCustomRolloffCurve is true
bool UseSpatialBlendCurve = false
 whether or not to use a custom curve for spatial blend
AnimationCurve SpatialBlendCurve
 the curve to use for custom spatial blend if UseSpatialBlendCurve is true
bool UseReverbZoneMixCurve = false
 whether or not to use a custom curve for reverb zone mix
AnimationCurve ReverbZoneMixCurve
 the curve to use for custom reverb zone mix if UseReverbZoneMixCurve is true
bool UseSpreadCurve = false
 whether or not to use a custom curve for spread
AnimationCurve SpreadCurve
 the curve to use for custom spread if UseSpreadCurve is true
bool DrawGizmos = false
 whether or not to draw sound falloff gizmos when this MMF Player is selected
Transform GizmosCenter
 an object to use as the center of the gizmos. If left empty, this MMF Player's position will be used.
Color MinDistanceColor = MMColors.CadetBlue
 the color to use to draw the min distance sphere of the sound falloff gizmos
Color MaxDistanceColor = MMColors.Orangered
 the color to use to draw the max distance sphere of the sound falloff gizmos
MMF_Button TestPlayButton
 a test button used to play the sound in inspector
MMF_Button TestStopButton
 a test button used to stop the sound in inspector
MMF_Button ResetSequentialIndexButton
 a test button used to stop the sound in inspector

Static Public Attributes

static bool FeedbackTypeAuthorized = true
 a static bool used to disable all feedbacks of this type at once

Protected Member Functions

override void CustomInitialization (MMF_Player owner)
 This method describes all custom initialization processes the feedback requires, in addition to the main Initialization method.
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 Plays either a random sound or the specified sfx.
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 On Stop, we stop our sound if needed.
virtual IEnumerator FadeOutCo ()
virtual void StopSound ()
virtual void HandleSO ()
 If a scriptable object is specified, we grab its values.
virtual void PlaySound (AudioClip sfx, Vector3 position, float intensity, AudioResource audioResource=null)
 Triggers a play sound event.
virtual IEnumerator IsPlayingCoroutine ()
 A coroutine used to determine if the sound is still playing or not.
virtual float GetDuration ()
 Returns the duration of the sound, or of the longest of the random sounds.
virtual float ComputeDuration (AudioClip sfx, AudioClip[] randomSfx)
virtual void TestStopSound ()
 A test method that stops the test sound.
virtual void PlayAudioSource (AudioSource audioSource, AudioClip sfx, float volume, float pitch, float time, float playbackDuration, AudioResource audioResourceToPlay)
 Plays the audio source with the specified volume and pitch.
virtual AudioClip PickRandomClip ()
 Determines the next index to play when dealing with random clips.

Protected Attributes

AudioClip _randomClip
AudioSource _editorAudioSource
MMSoundManagerPlayOptions _options
AudioSource _playedAudioSource
float _randomPlaybackTime
float _randomPlaybackDuration
int _currentIndex = 0
Vector3 _gizmoCenter
MMShufflebag< int > _randomUniqueShuffleBag
AudioClip _lastPlayedClip
Coroutine _isPlayingCoroutine

Properties

override float FeedbackDuration [get]
 sets the inspector color for this feedback
override bool HasRandomness [get]

Detailed Description

This feedback will let you play a sound via the MMSoundManager. You will need a game object in your scene with a MMSoundManager object on it for this to work.

Member Enumeration Documentation

◆ Sources

Enumerator
AudioClip 
AudioResource 

Member Function Documentation

◆ AutomaticShakerSetup()

override void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.AutomaticShakerSetup ( )
virtual

Automatically tries to add a MMSoundManager to the scene if none are present.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ ComputeDuration()

virtual float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.ComputeDuration ( AudioClip sfx,
AudioClip[] randomSfx )
protectedvirtual

◆ CustomInitialization()

override void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.CustomInitialization ( MMF_Player owner)
protectedvirtual

This method describes all custom initialization processes the feedback requires, in addition to the main Initialization method.

Parameters
owner

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.CustomPlayFeedback ( Vector3 position,
float feedbacksIntensity = 1::0f )
protected

Plays either a random sound or the specified sfx.

Parameters
position
feedbacksIntensity

◆ CustomStopFeedback()

override void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.CustomStopFeedback ( Vector3 position,
float feedbacksIntensity = 1 )
protectedvirtual

On Stop, we stop our sound if needed.

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ FadeOutCo()

virtual IEnumerator MoreMountains.Feedbacks.MMF_MMSoundManagerSound.FadeOutCo ( )
protectedvirtual

◆ GetDuration()

virtual float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.GetDuration ( )
protectedvirtual

Returns the duration of the sound, or of the longest of the random sounds.

Returns

◆ HandleSO()

virtual void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.HandleSO ( )
protectedvirtual

If a scriptable object is specified, we grab its values.

◆ InitializeCustomAttributes()

override void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.InitializeCustomAttributes ( )
virtual

Initializes the debug buttons.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ IsPlayingCoroutine()

virtual IEnumerator MoreMountains.Feedbacks.MMF_MMSoundManagerSound.IsPlayingCoroutine ( )
protectedvirtual

A coroutine used to determine if the sound is still playing or not.

Returns

◆ OnDrawGizmosSelectedHandler()

override void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.OnDrawGizmosSelectedHandler ( )
virtual

Triggered when the host MMF Player gets selected, can be used to draw gizmos.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ OnValidate()

override void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.OnValidate ( )
virtual

On validate we randomize our times.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ PickRandomClip()

virtual AudioClip MoreMountains.Feedbacks.MMF_MMSoundManagerSound.PickRandomClip ( )
protectedvirtual

Determines the next index to play when dealing with random clips.

Returns

◆ PlayAudioSource()

virtual void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.PlayAudioSource ( AudioSource audioSource,
AudioClip sfx,
float volume,
float pitch,
float time,
float playbackDuration,
AudioResource audioResourceToPlay )
protectedvirtual

Plays the audio source with the specified volume and pitch.

Parameters
audioSource
sfx
volume
pitch

◆ PlaySound()

virtual void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.PlaySound ( AudioClip sfx,
Vector3 position,
float intensity,
AudioResource audioResource = null )
protectedvirtual

Triggers a play sound event.

Parameters
sfx
position
intensity

◆ RandomizeTimes()

virtual void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.RandomizeTimes ( )
virtual

Randomizes playback time and playback duration.

◆ ResetSequentialIndex()

virtual void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.ResetSequentialIndex ( )
virtual

Forces a reset of the sequential index to 0.

◆ SetSequentialIndex()

virtual void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.SetSequentialIndex ( int newIndex)
virtual

Forces a reset of the sequential index to the value specified in parameters.

Parameters
newIndex

◆ StopSound()

virtual void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.StopSound ( )
protectedvirtual

◆ TestPlaySound()

virtual async void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.TestPlaySound ( )
virtual

A test method that creates an audiosource, plays it, and destroys itself after play.

◆ TestStopSound()

virtual void MoreMountains.Feedbacks.MMF_MMSoundManagerSound.TestStopSound ( )
protectedvirtual

A test method that stops the test sound.

Member Data Documentation

◆ _currentIndex

int MoreMountains.Feedbacks.MMF_MMSoundManagerSound._currentIndex = 0
protected

◆ _editorAudioSource

AudioSource MoreMountains.Feedbacks.MMF_MMSoundManagerSound._editorAudioSource
protected

◆ _gizmoCenter

Vector3 MoreMountains.Feedbacks.MMF_MMSoundManagerSound._gizmoCenter
protected

◆ _isPlayingCoroutine

Coroutine MoreMountains.Feedbacks.MMF_MMSoundManagerSound._isPlayingCoroutine
protected

◆ _lastPlayedClip

AudioClip MoreMountains.Feedbacks.MMF_MMSoundManagerSound._lastPlayedClip
protected

◆ _options

MMSoundManagerPlayOptions MoreMountains.Feedbacks.MMF_MMSoundManagerSound._options
protected

◆ _playedAudioSource

AudioSource MoreMountains.Feedbacks.MMF_MMSoundManagerSound._playedAudioSource
protected

◆ _randomClip

AudioClip MoreMountains.Feedbacks.MMF_MMSoundManagerSound._randomClip
protected

◆ _randomPlaybackDuration

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound._randomPlaybackDuration
protected

◆ _randomPlaybackTime

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound._randomPlaybackTime
protected

◆ _randomUniqueShuffleBag

MMShufflebag<int> MoreMountains.Feedbacks.MMF_MMSoundManagerSound._randomUniqueShuffleBag
protected

◆ AttachToTransform

Transform MoreMountains.Feedbacks.MMF_MMSoundManagerSound.AttachToTransform

a Transform this sound can 'attach' to and follow it along as it plays

◆ AudioGroup

AudioMixerGroup MoreMountains.Feedbacks.MMF_MMSoundManagerSound.AudioGroup = null

the AudioGroup on which to play the sound. If you're already targeting a preset track, you can leave it blank, otherwise the group you specify here will override it.

◆ AudioResourceToPlay

AudioResource MoreMountains.Feedbacks.MMF_MMSoundManagerSound.AudioResourceToPlay

alternatively, instead of an audio clip you can specify an AudioResource, in which case the Sfx above will be ignored, and the AudioResource will be used

◆ AutoUnSoloOnEnd

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.AutoUnSoloOnEnd = false

if in any of the above solo modes, AutoUnSoloOnEnd will unmute the track(s) automatically once that sound stops playing

◆ BypassEffects

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.BypassEffects = false

Bypass effects (Applied from filter components or global listener filters).

◆ BypassListenerEffects

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.BypassListenerEffects = false

When set global effects on the AudioListener will not be applied to the audio signal generated by the AudioSource. Does not apply if the AudioSource is playing into a mixer group.

◆ BypassReverbZones

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.BypassReverbZones = false

When set doesn't route the signal from an AudioSource into the global reverb associated with reverb zones.

◆ CustomRolloffCurve

AnimationCurve MoreMountains.Feedbacks.MMF_MMSoundManagerSound.CustomRolloffCurve

the curve to use for custom volume rolloff if UseCustomRolloffCurve is true

◆ DoNotPlayIfClipAlreadyPlaying

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.DoNotPlayIfClipAlreadyPlaying = false

whether or not this sound should play if the same sound clip is already playing

◆ DopplerLevel

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.DopplerLevel = 1f

Sets the Doppler scale for this AudioSource.

◆ DrawGizmos

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.DrawGizmos = false

whether or not to draw sound falloff gizmos when this MMF Player is selected

◆ FadeIn

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.FadeIn = false

whether or not to fade this sound in when playing it

◆ FadeInDuration

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.FadeInDuration = 1f

if fading, the duration of the fade, in seconds

◆ FadeInInitialVolume

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.FadeInInitialVolume = 0f

if fading, the volume at which to start the fade

◆ FadeInTween

MMTweenType MoreMountains.Feedbacks.MMF_MMSoundManagerSound.FadeInTween = new MMTweenType(MMTween.MMTweenCurve.EaseInOutQuartic, "FadeIn")

if fading, the tween over which to fade the sound

◆ FadeOutDuration

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.FadeOutDuration = 1f

if fading out, the duration of the fade, in seconds

◆ FadeOutOnStop

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.FadeOutOnStop = false

whether or not to fade this sound in when stopping the feedback

◆ FadeOutTween

MMTweenType MoreMountains.Feedbacks.MMF_MMSoundManagerSound.FadeOutTween = new MMTweenType(MMTween.MMTweenCurve.EaseInOutQuartic, "FadeOutOnStop")

if fading out, the tween over which to fade the sound

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.FeedbackTypeAuthorized = true
static

a static bool used to disable all feedbacks of this type at once

◆ GizmosCenter

Transform MoreMountains.Feedbacks.MMF_MMSoundManagerSound.GizmosCenter

an object to use as the center of the gizmos. If left empty, this MMF Player's position will be used.

◆ ID

int MoreMountains.Feedbacks.MMF_MMSoundManagerSound.ID = 0

the ID of the sound. This is useful if you plan on using sound control feedbacks on it afterwards.

◆ Loop

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.Loop = false

whether or not this sound should loop

◆ MaxDistance

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.MaxDistance = 500f

(Logarithmic rolloff) MaxDistance is the distance a sound stops attenuating at.

◆ MaxDistanceColor

Color MoreMountains.Feedbacks.MMF_MMSoundManagerSound.MaxDistanceColor = MMColors.Orangered

the color to use to draw the max distance sphere of the sound falloff gizmos

◆ MaximumConcurrentInstances

int MoreMountains.Feedbacks.MMF_MMSoundManagerSound.MaximumConcurrentInstances = 3

the maximum amount of instances of this sound allowed to play at once. use -1 for unlimited concurrent plays

◆ MaxPitch

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.MaxPitch = 1f

the maximum pitch to play the sound at

◆ MaxVolume

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.MaxVolume = 1f

the maximum volume to play the sound at

◆ MinDistance

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.MinDistance = 1f

Within the Min distance the AudioSource will cease to grow louder in volume.

◆ MinDistanceColor

Color MoreMountains.Feedbacks.MMF_MMSoundManagerSound.MinDistanceColor = MMColors.CadetBlue

the color to use to draw the min distance sphere of the sound falloff gizmos

◆ MinPitch

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.MinPitch = 1f

the minimum pitch to play the sound at

◆ MinVolume

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.MinVolume = 1f

the minimum volume to play the sound at

◆ MmSoundManagerTrack

MMSoundManager.MMSoundManagerTracks MoreMountains.Feedbacks.MMF_MMSoundManagerSound.MmSoundManagerTrack = MMSoundManager.MMSoundManagerTracks.Sfx

the track on which to play the sound. Pick the one that matches the nature of your sound

◆ PanStereo

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.PanStereo

Pans a playing sound in a stereo way (left or right). This only applies to sounds that are Mono or Stereo.

◆ Persistent

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.Persistent = false

whether or not this sound should continue playing when transitioning to another scene

◆ PlaybackDuration

Vector2 MoreMountains.Feedbacks.MMF_MMSoundManagerSound.PlaybackDuration = new Vector2(0f, 0f)

a duration (in seconds, randomized between the defined min and max) for which the sound will play before stopping. Ignored if min and max are zero.

◆ PlaybackTime

Vector2 MoreMountains.Feedbacks.MMF_MMSoundManagerSound.PlaybackTime = new Vector2(0f, 0f)

a timestamp (in seconds, randomized between the defined min and max) at which the sound will start playing, equivalent to the Audiosource API's Time)

◆ Priority

int MoreMountains.Feedbacks.MMF_MMSoundManagerSound.Priority = 128

Sets the priority of the AudioSource.

◆ RandomSfx

AudioClip [] MoreMountains.Feedbacks.MMF_MMSoundManagerSound.RandomSfx

an array to pick a random sfx from

◆ RandomUnique

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.RandomUnique = false

if this is true, sfx will be picked at random until all have been played. once this happens, the list is shuffled again, and it starts over

◆ RecycleAudioSource

AudioSource MoreMountains.Feedbacks.MMF_MMSoundManagerSound.RecycleAudioSource = null

if (for some reason) you've already got an audiosource and wouldn't like to use the built-in pool system, you can specify it here

◆ ResetSequentialIndexButton

MMF_Button MoreMountains.Feedbacks.MMF_MMSoundManagerSound.ResetSequentialIndexButton

a test button used to stop the sound in inspector

◆ ReverbZoneMix

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.ReverbZoneMix = 1f

The amount by which the signal from the AudioSource will be mixed into the global reverb associated with the Reverb Zones.

◆ ReverbZoneMixCurve

AnimationCurve MoreMountains.Feedbacks.MMF_MMSoundManagerSound.ReverbZoneMixCurve

the curve to use for custom reverb zone mix if UseReverbZoneMixCurve is true

◆ RolloffMode

AudioRolloffMode MoreMountains.Feedbacks.MMF_MMSoundManagerSound.RolloffMode = AudioRolloffMode.Logarithmic

Sets/Gets how the AudioSource attenuates over distance.

◆ SequentialOrder

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.SequentialOrder = false

if this is true, random sfx audio clips will be played in sequential order instead of at random

◆ SequentialOrderHoldCooldownDuration

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.SequentialOrderHoldCooldownDuration = 2f

if we're in sequential order hold last mode, index will reset to 0 automatically after this duration, unless it's 0, in which case it'll be ignored

◆ SequentialOrderHoldLast

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.SequentialOrderHoldLast = false

if we're in sequential order, determines whether or not to hold at the last index, until either a cooldown is met, or the ResetSequentialIndex method is called

◆ Sfx

AudioClip MoreMountains.Feedbacks.MMF_MMSoundManagerSound.Sfx

the sound clip to play

◆ SoloAllTracks

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.SoloAllTracks = false

whether or not this sound should play in solo mode over all other tracks. If yes, all other tracks will be muted when this sound starts playing

◆ SoloSingleTrack

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.SoloSingleTrack = false

whether or not this sound should play in solo mode over its destination track. If yes, all other sounds on that track will be muted when this sound starts playing

◆ SoundDataSO

MMF_MMSoundManagerSoundData MoreMountains.Feedbacks.MMF_MMSoundManagerSound.SoundDataSO

a scriptable object (created via the Create/MoreMountains/Audio/MMF_SoundData menu) to define settings that will override all other settings on this feedback

◆ Source

Sources MoreMountains.Feedbacks.MMF_MMSoundManagerSound.Source = Sources.AudioClip

whether this feedback should play an audio clip or an AudioResource

◆ SpatialBlend

float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.SpatialBlend

Sets how much this AudioSource is affected by 3D spatialisation calculations (attenuation, doppler etc). 0.0 makes the sound full 2D, 1.0 makes it full 3D.

◆ SpatialBlendCurve

AnimationCurve MoreMountains.Feedbacks.MMF_MMSoundManagerSound.SpatialBlendCurve

the curve to use for custom spatial blend if UseSpatialBlendCurve is true

◆ Spread

int MoreMountains.Feedbacks.MMF_MMSoundManagerSound.Spread = 0

Sets the spread angle (in degrees) of a 3d stereo or multichannel sound in speaker space.

◆ SpreadCurve

AnimationCurve MoreMountains.Feedbacks.MMF_MMSoundManagerSound.SpreadCurve

the curve to use for custom spread if UseSpreadCurve is true

◆ StopSoundOnFeedbackStop

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.StopSoundOnFeedbackStop = false

if this is true, this sound will stop playing when stopping the feedback

◆ TestPlayButton

MMF_Button MoreMountains.Feedbacks.MMF_MMSoundManagerSound.TestPlayButton

a test button used to play the sound in inspector

◆ TestStopButton

MMF_Button MoreMountains.Feedbacks.MMF_MMSoundManagerSound.TestStopButton

a test button used to stop the sound in inspector

◆ UseCustomRolloffCurve

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.UseCustomRolloffCurve = false

whether or not to use a custom curve for custom volume rolloff

◆ UseReverbZoneMixCurve

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.UseReverbZoneMixCurve = false

whether or not to use a custom curve for reverb zone mix

◆ UseSpatialBlendCurve

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.UseSpatialBlendCurve = false

whether or not to use a custom curve for spatial blend

◆ UseSpreadCurve

bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.UseSpreadCurve = false

whether or not to use a custom curve for spread

Property Documentation

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_MMSoundManagerSound.FeedbackDuration
get

sets the inspector color for this feedback

the duration of this feedback is the duration of the clip being played

◆ HasRandomness

override bool MoreMountains.Feedbacks.MMF_MMSoundManagerSound.HasRandomness
get

The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/ThirdParty/MoreMountains/MMFeedbacks/MMFeedbacksForThirdParty/MMTools/Feedbacks/MMF_MMSoundManagerSound.cs