Search Unity

Audio How to get Current Snapshot in AudioMixer?

Discussion in 'Audio & Video' started by DeathPro, Nov 10, 2023.

  1. DeathPro

    DeathPro

    Joined:
    Jul 28, 2018
    Posts:
    91
    I have a couple of AudioMixers and separate data containing ingoing and outgoing snapshot transition times. I want to get CurrentActiveSnapshot. Is it possible to get it from AudioMixer?
     
  2. SeventhString

    SeventhString

    Unity Technologies

    Joined:
    Jan 12, 2023
    Posts:
    410
    The mixer currently does not expose this, as it could be transitioning between multiple Snapshots at any moment.

    The simplest way to go about this would be to script something that handles and stores your snapshot states.
     
    DeathPro likes this.