Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

var bypassEffects: bool;
bool bypassEffects;
bypassEffects as bool

Description

Bypass effects (Applied from filter components or global listener filters).

	// Turn all the audio effects applied to this audio Listener off
	function Start() {
		audio.bypassEffects = false;
	}
using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour {
    void Start() {
        audio.bypassEffects = false;
    }
}
import UnityEngine
import System.Collections

public class ExampleClass(MonoBehaviour):

	def Start() as void:
		audio.bypassEffects = false