Skip to content

Class: DewAudioSource ​

  • Namespace: Global
  • Assembly: Dew.Core.dll
csharp
public class DewAudioSource : MonoBehaviour, IEffectComponent, IEffectWithOwnerContext

Fields ​

NameDeclarationDescription
clip`[ShowIf("@rawClip == null || clip != null", true)]
public DewAudioClip clip`
delaypublic float delay
fadeInTimepublic float fadeInTime
fadeOutTimepublic float fadeOutTime
forceHighestPriority`[ToggleLeft]
public bool forceHighestPriority`
ignoreTimescale`[ToggleLeft]
public bool ignoreTimescale`
isLoop`[ToggleLeft]
public bool isLoop`
PitchChangeByTimescaleMultiplierpublic const float PitchChangeByTimescaleMultiplier = 0.75
pitchMultiplierpublic float pitchMultiplier
playOnEnable`[Space(20)]
[ToggleLeft]
public bool playOnEnable`
rawClip`[ShowIf("@clip == null", true)]
public AudioClip rawClip`
rolloff`[ShowIf("@space != AudioSpaceType.Global", true)]
public DewAudioRollOffType rolloff`
spacepublic AudioSpaceType space
stopWhenEffectStop`[HideIf("isLoop", true)]
[ToggleLeft]
public bool stopWhenEffectStop`
typepublic AudioType type
volumeMultiplier`[Space(20)]
public float volumeMultiplier`

Properties ​

NameDeclarationDescription
isPlayingpublic bool isPlaying { get; }

Methods ​

Play() ​

csharp
public void Play()

SetOwnerContext(EffectOwnerContext) ​

csharp
public void SetOwnerContext(EffectOwnerContext context)

Parameters:

NameTypeDescription
contextEffectOwnerContext

Stop() ​

csharp
public void Stop()

Maintained by the Shape of Dreams Modding Community