Create a gist now

Instantly share code, notes, and snippets.

@tsubaki /MixerTest.cs Secret
Created May 20, 2015

What would you like to do?
Audiomixerのスナップショットの入れ替え
using UnityEngine;
using System.Collections;
public class MixerTest : MonoBehaviour {
[SerializeField]
UnityEngine.Audio.AudioMixer mix;
void Start ()
{
var snapshot = mix.FindSnapshot("snapshot2");
var baseSnapshot = mix.FindSnapshot("Snapshot1");
mix.TransitionToSnapshots(
new UnityEngine.Audio.AudioMixerSnapshot[]{baseSnapshot, snapshot},
new float[]{0, 1},
3);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment