-
-
Save tsubaki/a7c2cc2d2069fcd500e8 to your computer and use it in GitHub Desktop.
Audiomixerのスナップショットの入れ替え
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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