Vixen
02b45cc4
csharp
public readonly record struct AudioEventVariant

One of the sounds an event can play, and how it differs from its siblings.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The offsets exist because variants are recorded, not synthesised: four takes of a footstep arrive at four different levels, and correcting that in the asset is better than correcting it in the wav, which loses the original.

Fields and properties (4)

  • public AudioClip Clip

    The audio.

  • public float Weight

    How likely it is, against its siblings. Honoured by the random modes.

  • public float GainDb

    A level correction for this take alone.

  • public float PitchSemitones

    A tuning correction for this take alone.

Methods (1)

  • public AudioEventVariant(AudioClip Clip)

    One of the sounds an event can play, and how it differs from its siblings.

Used by (5)

  • AudioEventVixen.Audio
  • AudioEventBuilderVixen.Audio
  • AudioEventDescriptionVixen.Audio
  • AudioEventSystemTestsVixen.Audio.Tests
  • AudioEventTestsVixen.Audio.Tests