Developer Documentation
Our new developer documentation is now available. Please check it out!

OdinMedia.AddEffect

public T AddEffect<T>()
    where T : MonoBehaviour, IOdinEffect
public T AddEffect<T>(T effect)
    where T : MonoBehaviour, IOdinEffect
public CustomEffect<T> AddEffect<T>(UnityAction<OdinCallbackAudioData, T> callback, T userData)
    where T : struct

Parameters

NameTypeDescription
effect<T>
callbackUnityAction<OdinCallbackAudioData,<T>>
userData<T>

Returns

TypeDescription
<T>
CustomEffect<<T>>

Variants

AddEffect()

public T AddEffect<T>()
    where T : MonoBehaviour, IOdinEffect

Returns

TypeDescription
<T>

AddEffect(effect)

public T AddEffect<T>(T effect)
    where T : MonoBehaviour, IOdinEffect

Parameters

NameTypeDescription
effect<T>

Returns

TypeDescription
<T>

AddEffect(callback, userData)

public CustomEffect<T> AddEffect<T>(UnityAction<OdinCallbackAudioData, T> callback, T userData)
    where T : struct

Parameters

NameTypeDescription
callbackUnityAction<OdinCallbackAudioData,<T>>
userData<T>

Returns

TypeDescription
CustomEffect<<T>>