public struct AudioListenerComponentMarks the entity whose transform the mixer listens from.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
Named with the suffix because AudioListener is already the value the mixer holds, and a subsystem with two things of the same name is a bug waiting to be written. This is the component; that is the state it produces.
The first one found wins. A world with two is a mistake — there is one set of speakers — and the system says so rather than averaging them into a listener that is nowhere.
Fields and properties (7)
public float GainA gain over every positioned voice.
public float WeightHow much of the mix these ears get, against the other listeners'.
public bool AutoVelocityWhether the system works velocity out from how far the entity moved.
public Vector3 VelocityHow fast it is moving, in units a second.
public Vector3 PreviousPositionWhere it was last frame. Owned by the system.
public bool HasPreviousPositionWhether PreviousPosition means anything yet.
public static AudioListenerComponent DefaultFull gain, velocity worked out from movement.
Used by (10)
- AudioEventSystemTestsVixen.Audio.Tests
- AudioSystemVixen.Audio
- AudioSystemTestsVixen.Audio.Tests
- ComponentRegistrationVixen.Audio
- MultipleListenerTestsVixen.Audio.Tests
- ReverbZoneSystemTestsVixen.Audio.Tests
- TypeRegistrationVixen.Audio
- Vixen_Audio_Ecs_AudioListenerComponentSerializerVixen.Audio
- ComponentTestsVixen.Editor.App.Tests
- MaterialIconsVixen.Editor.App