Class OdinTerrainFilterComponent
Custom filter by terrain component for OdinNative.Wrapper.Media.CustomEffect
This class is a effect in the odin audio pipline to mute audio based on location of a GameObject relative to a terrain type in Unity space. Note that the default implementation is Unity specific on a 2D calculation with X, Z and is not useful in all occlusions.
Assembly: cs.temp.dll.dll
Declaration
Inheritance: System.Object
-> OdinNative.Unity.Audio.OdinCustomEffectUnityComponentBase<U>
Implements:
OdinNative.Unity.Audio.IOdinEffect
Fields
Emitter
Declaration
Data
Declaration
_UserData
Declaration
Methods
SetUserData(Vector3, Vector3, TerrainData)
Set delegate userdata for effect callback
Declaration
Parameters
Type | Name |
---|---|
Odin.Vector3 | objectPosition |
Odin.Vector3 | terrainPosition |
Odin.TerrainData | terrainData |
GetEffectUserData()
Get delegate userdata
Declaration
Returns
OdinNative.Unity.Audio.OdinTerrainFilterComponent.TerrainFilterUserData: effect userdata### CustomEffectCallback(OdinArrayf, ref bool, TerrainFilterUserData)
Declaration
Parameters
Type | Name |
---|---|
Odin.OdinArrayf | audio |
System.Boolean | isSilent |
OdinNative.Unity.Audio.OdinTerrainFilterComponent.TerrainFilterUserData | userData |