Search Results for

    Show / Hide Table of Contents

    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
    Implements
    IEffectComponent
    IEffectWithOwnerContext
    Namespace: Global
    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
    Type Description
    DewAudioClip

    delay

    Declaration
    public float delay
    Field Value
    Type Description
    float

    fadeInTime

    Declaration
    public float fadeInTime
    Field Value
    Type Description
    float

    fadeOutTime

    Declaration
    public float fadeOutTime
    Field Value
    Type Description
    float

    forceHighestPriority

    Declaration
    [ToggleLeft]
    public bool forceHighestPriority
    Field Value
    Type Description
    bool

    ignoreTimescale

    Declaration
    [ToggleLeft]
    public bool ignoreTimescale
    Field Value
    Type Description
    bool

    isLoop

    Declaration
    [ToggleLeft]
    public bool isLoop
    Field Value
    Type Description
    bool

    PitchChangeByTimescaleMultiplier

    Declaration
    public const float PitchChangeByTimescaleMultiplier = 0.75
    Field Value
    Type Description
    float

    pitchMultiplier

    Declaration
    public float pitchMultiplier
    Field Value
    Type Description
    float

    playOnEnable

    Declaration
    [Space(20)]
    [ToggleLeft]
    public bool playOnEnable
    Field Value
    Type Description
    bool

    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
    Type Description
    DewAudioRollOffType

    space

    Declaration
    public AudioSpaceType space
    Field Value
    Type Description
    AudioSpaceType

    stopWhenEffectStop

    Declaration
    [HideIf("isLoop", true)]
    [ToggleLeft]
    public bool stopWhenEffectStop
    Field Value
    Type Description
    bool

    type

    Declaration
    public AudioType type
    Field Value
    Type Description
    AudioType

    volumeMultiplier

    Declaration
    [Space(20)]
    public float volumeMultiplier
    Field Value
    Type Description
    float

    Properties

    isPlaying

    Declaration
    public bool isPlaying { get; }
    Property Value
    Type Description
    bool

    Methods

    Play()

    Declaration
    public void Play()

    SetOwnerContext(EffectOwnerContext)

    Declaration
    public void SetOwnerContext(EffectOwnerContext context)
    Parameters
    Type Name Description
    EffectOwnerContext context

    Stop()

    Declaration
    public void Stop()

    Explicit Interface Implementations

    IEffectComponent.Play()

    Declaration
    void IEffectComponent.Play()

    IEffectComponent.Stop()

    Declaration
    void IEffectComponent.Stop()

    Implements

    IEffectComponent
    IEffectWithOwnerContext

    Extension Methods

    DewGUI.SetExpandHeight<T>(T, bool)
    DewGUI.SetExpandHeight<T>(T, float)
    DewGUI.SetExpandWidth<T>(T, bool)
    DewGUI.SetExpandWidth<T>(T, float)
    DewGUI.SetHeight<T>(T, float)
    DewGUI.SetText<T>(T, string)
    DewGUI.SetTextLocalized<T>(T, string)
    DewGUI.SetWidth<T>(T, float)
    In This Article
    Back to top Shape of Dreams API Documentation