Class DewAudioSource
Shape of Dreams' AudioSource. Plays DewAudioClip that supports random clips and pitches.
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
DewAudioSource
Assembly: Dew.Core.dll
Syntax
public class DewAudioSource : MonoBehaviour, IEffectComponent, IEffectWithOwnerContext
Fields
clip
Declaration
[ShowIf("@rawClip == null || clip != null", true)]
public DewAudioClip clip
Field Value
delay
Declaration
Field Value
fadeInTime
Declaration
Field Value
fadeOutTime
Declaration
Field Value
forceHighestPriority
Declaration
[ToggleLeft]
public bool forceHighestPriority
Field Value
ignoreTimescale
Declaration
[ToggleLeft]
public bool ignoreTimescale
Field Value
isLoop
Declaration
[ToggleLeft]
public bool isLoop
Field Value
PitchChangeByTimescaleMultiplier
Declaration
public const float PitchChangeByTimescaleMultiplier = 0.75
Field Value
pitchMultiplier
Declaration
public float pitchMultiplier
Field Value
playOnEnable
Declaration
[Space(20)]
[ToggleLeft]
public bool playOnEnable
Field Value
rawClip
Declaration
[ShowIf("@clip == null", true)]
public AudioClip rawClip
Field Value
| Type |
Description |
| UnityEngine.AudioClip |
|
rolloff
Declaration
[ShowIf("@space != AudioSpaceType.Global", true)]
public DewAudioRollOffType rolloff
Field Value
space
Declaration
public AudioSpaceType space
Field Value
stopWhenEffectStop
Declaration
[HideIf("isLoop", true)]
[ToggleLeft]
public bool stopWhenEffectStop
Field Value
type
Declaration
Field Value
volumeMultiplier
Declaration
[Space(20)]
public float volumeMultiplier
Field Value
Properties
isPlaying
Declaration
public bool isPlaying { get; }
Property Value
Methods
Play()
Declaration
SetOwnerContext(EffectOwnerContext)
Declaration
public void SetOwnerContext(EffectOwnerContext context)
Parameters
Stop()
Declaration
Explicit Interface Implementations
IEffectComponent.Play()
Declaration
void IEffectComponent.Play()
IEffectComponent.Stop()
Declaration
void IEffectComponent.Stop()
Implements
Extension Methods