Class OdinColliderFilterComponent
Custom filter by collider component for OdinNative.Wrapper.Media.CustomEffect
This class is an effect in the odin audio pipeline to mute audio based on GameObject collisions in Unity space. The effect can help to trigger specific audio packets quickly without the adjustment of Server-side positions.
Declaration
Inheritance: System.Object -> UnityEngine.Object -> UnityEngine.Component -> UnityEngine.Behaviour -> UnityEngine.MonoBehaviour -> OdinNative.Unity.Audio.OdinCustomEffectUnityComponentBase<U>
Implements:
OdinNative.Unity.Audio.IOdinEffect
Properties
_Colliding
Declaration
Fields
ColliderTag
Declaration
Comparison
Declaration
Callback
Declaration
Methods
SetTriggerCount(Collider, bool)
Declaration
Parameters
| Type | Name |
|---|---|
UnityEngine.Collider | obj |
System.Boolean | isEnter |
CustomEffectCallback(OdinTArray<float>, ref bool, nint)
Callback delegate for the effect
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| OdinNative.Core.Imports.NativeBindings.OdinTArray<T> | audio | audio data wrapper for copy buffer to native |
System.Boolean | isSilent | flag whether the buffer contains silence, can be set to mute the frame |
System.IntPtr | _ | effect userdata, see OdinNative.Unity.Audio.OdinCustomEffectUnityComponentBase |