UnityEditor.Audio.AudioMixerGroupController.SetValueForPitch C# (CSharp) Méthode

SetValueForPitch() private méthode

private SetValueForPitch ( UnityEditor.Audio.AudioMixerController controller, AudioMixerSnapshotController snapshot, float value ) : void
controller UnityEditor.Audio.AudioMixerController
snapshot AudioMixerSnapshotController
value float
Résultat void
        public extern void SetValueForPitch(AudioMixerController controller, AudioMixerSnapshotController snapshot, float value);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

Exemple #1
0
        public void CopyAllSettingsToAllSnapshots(AudioMixerGroupController group, AudioMixerSnapshotController snapshot)
        {
            for (int n = 0; n < group.effects.Length; n++)
            {
                CopyEffectSettingsToAllSnapshots(group, n, snapshot, true);
            }

            AudioMixerSnapshotController[] snaps = snapshots;
            for (int n = 0; n < snaps.Length; n++)
            {
                if (snaps[n] == snapshot)
                {
                    continue;
                }
                var dst = snaps[n];
                group.SetValueForVolume(this, dst, group.GetValueForVolume(this, snapshot));
                group.SetValueForPitch(this, dst, group.GetValueForPitch(this, snapshot));
            }
        }
All Usage Examples Of UnityEditor.Audio.AudioMixerGroupController::SetValueForPitch