Infinite Runner Engine v1.9
Public Types | Public Attributes | Static Public Attributes | Protected Member Functions | List of all members
MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl Class Reference

This feedback will let you control all sounds playing on a specific track (master, UI, music, sfx), and play, pause, mute, unmute, resume, stop, free them all at once. You will need a MMSoundManager in your scene for this to work. More...

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

Public Types

enum  ControlModes {
  Mute , UnMute , SetVolume , Pause ,
  Play , Stop , Free
}
 sets the inspector color for this feedback More...
 

Public Attributes

MMSoundManager.MMSoundManagerTracks Track
 the track to mute/unmute/pause/play/stop/free/etc More...
 
ControlModes ControlMode = ControlModes.Pause
 the selected control mode to interact with the track. Free will stop all sounds and return them to the pool More...
 
float Volume = 0.5f
 if setting the volume, the volume to assign to the track More...
 

Static Public Attributes

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

Protected Member Functions

override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On play, orders the entire track to follow the specific command, via a MMSoundManager event More...
 

Additional Inherited Members

Detailed Description

This feedback will let you control all sounds playing on a specific track (master, UI, music, sfx), and play, pause, mute, unmute, resume, stop, free them all at once. You will need a MMSoundManager in your scene for this to work.

Member Enumeration Documentation

◆ ControlModes

sets the inspector color for this feedback

the possible modes you can use to interact with the track. Free will stop all sounds and return them to the pool

Enumerator
Mute 
UnMute 
SetVolume 
Pause 
Play 
Stop 
Free 

Member Function Documentation

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl.CustomPlayFeedback ( Vector3  position,
float  feedbacksIntensity = 1.0f 
)
protectedvirtual

On play, orders the entire track to follow the specific command, via a MMSoundManager event

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ ControlMode

ControlModes MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl.ControlMode = ControlModes.Pause

the selected control mode to interact with the track. Free will stop all sounds and return them to the pool

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl.FeedbackTypeAuthorized = true
static

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

◆ Track

MMSoundManager.MMSoundManagerTracks MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl.Track

the track to mute/unmute/pause/play/stop/free/etc

◆ Volume

float MoreMountains.Feedbacks.MMF_MMSoundManagerTrackControl.Volume = 0.5f

if setting the volume, the volume to assign to the track


The documentation for this class was generated from the following file: