Vixen
02b45cc4
csharp
public record class AudioEventVariantAsset

One of an event's sounds, as a file declares it.

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

Remarks

The clip is named, not contained. Six events that all use one door slam are six references and one clip in one bundle — containing it would put six copies in the build and six in memory. That is the whole argument for ContentReference`1 and it applies here more than almost anywhere, because sharing a clip between events is the normal case rather than the clever one.

Fields and properties (4)

  • public ContentReference<AudioClip>? Clip

    The clip.

  • public float Weight

    How likely it is, against its siblings.

  • public float GainDb

    A level correction for this take alone.

  • public float PitchSemitones

    A tuning correction for this take alone.

Used by (7)

  • AudioEventAssetVixen.Audio
  • AudioEventAssetTestsVixen.Audio.Tests
  • AudioEventBuilderVixen.Audio
  • LayeredEventTestsVixen.Audio.Tests
  • TypeRegistrationVixen.Audio
  • Vixen_Audio_Assets_AudioEventAssetSerializerVixen.Audio
  • Vixen_Audio_Assets_AudioEventVariantAssetSerializerVixen.Audio