Event

Description

Fabric provides a number of details related with an Event.

Enumerations

EventAction

public enum EventAction
{
    // Trigger event    PlaySound,
    StopSound,
    PauseSound,
    UnpauseSound,
    // Parameter event type    SetVolume,
    SetPitch,
    SetSwitch,
    SetParameter,
    SetFadeIn,
    SetFadeOut,
    SetPan,
    // DynamicMixer presets    AddPreset,
    RemovePreset,
    // DSP Effect    SetDSPParameter,
    // Misc    RegisterGameObject,
    // New event actions    ResetDynamicMixer,
    AdvanceSequence,
    ResetSequence,
    SwitchPreset,
    SetTime,
    SetModularSynthParameter,
    StopAll,
    LoadAudio,
    UnloadAudio,
    SetAudioClipReference,
    Ignore,
    SetMarker,
    KeyOffMarker,
    TransitionToSnapshot,
};

 

EventNotificationType

public enum EventNotificationType
    {
        OnFinished,
        OnSequenceNextEntry,
        OnSequenceAdvance,
        OnSequenceEnd,
        OnSwitch,
    }

EventStatus

 public enum EventStatus
    {
        Idle,
        InQueue,
        Handled,
        Handled_Virtualized,
        Not_Handled,
        Not_Handled_MinimumPlaybackInterval,
        Failed_Uknown,
        Failed_Invalid_Instance,
        Failed_No_Listeners,
        Failed_Invalid_GameObject,
        Failed_SetProperty
    };

Delegates

OnEventNotify

public delegate void OnEventNotify(EventNotificationType type, object info, GameObject gameObject);

Parameters:

type
info
gameObject

Description:

 

 

 

Classes

InitialiseParameters

public class InitialiseParameters{
    public bool _isMutliplier = false;
    public InitialiseParameter<float> _priority;
    public InitialiseParameter<float> _volume;
    public InitialiseParameter<float> _volumeRandomization;
    public InitialiseParameter<float> _fadeInTime;
    public InitialiseParameter<float> _fadeInCurve;
    public InitialiseParameter<float> _fadeOutTime;
    public InitialiseParameter<float> _fadeOutCurve;
    public InitialiseParameter<float> _pitch;
    public InitialiseParameter<float> _pitchRandomization;
    public InitialiseParameter<float> _panLevel;
    public InitialiseParameter<float> _pan2D;
    public InitialiseParameter<float> _spreadLevel;
    public InitialiseParameter<float> _dopplerLevel;
    public InitialiseParameter<float> _minDistance;
    public InitialiseParameter<float> _maxDistance;
    public InitialiseParameter<int> _delaySamples;
    public InitialiseParameter<AudioRolloffMode> _rolloffMode;
}

Structs

ParameterData

 public struct ParameterData
    {
        [SerializeField]
        public float _value;
        
        [SerializeField]
        public string _parameter;
    }