OdinCustomEffectUnityComponentBase<U>
public abstract class OdinCustomEffectUnityComponentBase<U> : MonoBehaviour, IOdinEffect where U : struct
Custom base component for Media
This convenient class provides effect template with a passthrough of custom userdata on a callback. The abstract representation of a base custom effect is to simplify implementation of Audio as a Unity component. (see other predefined custom effects)
Properties
Name | Description |
---|---|
Media | Get Media |
Effect | Get base effect |
IsCreated | Flag if the effect was added to the pipeline |
IsEnabled | Flag if the component is active or use isActiveAndEnabled |
DestroyOnError |
Public Methods
Name | Description |
---|---|
GetEffectUserData | Get userdata used for the OdinCustomEffectUnityComponentBase%601 |
CustomEffectCallback | Callback delegate for the effect |
ResetEffect | Removes an effect from the pipeline and add a new effect with callbacks |
GetMedia | Get Media |
GetEffect | Get custom effect |