Class PlaySoundEffector
Inheritance
PlaySoundEffector
Assembly: Xareus.Unity.Librairies.dll
Syntax
[Renamed("SEVEN.Unity.PlaySoundEffector", "Assembly-CSharp")]
public class PlaySoundEffector : AUnityEffector
Constructors
PlaySoundEffector(Event, Dictionary<string, Parameter>, IContext, IContext, IContext, IContext)
Declaration
public PlaySoundEffector(Event @event, Dictionary<string, Parameter> parameters, IContext externalContext, IContext scenarioContext, IContext sequenceContext, IContext eventContext)
Parameters
Fields
audioClip
Declaration
[ConfigurationParameter("Audio Clip", Necessity.Required)]
protected AudioClip audioClip
Field Value
audioSource
Declaration
[ConfigurationParameter("Audio Source", Necessity.Required)]
protected AudioSource audioSource
Field Value
finished
Declaration
Field Value
loop
Declaration
[ConfigurationParameter("Loop", Necessity.Required)]
protected bool loop
Field Value
volume
Declaration
[ConfigurationParameter("Volume", Necessity.Optional)]
protected float volume
Field Value
waitForEnd
Declaration
[ConfigurationParameter("Wait For End", "Wait for the clip to finish once before passing the transition", Necessity.Required)]
protected bool waitForEnd
Field Value
Properties
Finished
Override to have a non-ponctual effector
Declaration
public override bool Finished { get; }
Property Value
Overrides
Methods
CheckAudioState()
Check every frame if the audiosource is still playing or if the audio clip has changed
Declaration
protected virtual IEnumerator CheckAudioState()
Returns
SafeEffectorUpdate()
Actual effector code. Note that this code will be executed in unity's thread
Declaration
public override void SafeEffectorUpdate()
Overrides