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 delay: float;
float delay;
delay as float

Description

Chorus delay in ms. 0.1 to 100.0. Default = 40.0 ms.

	// Dont use delay on the filter.

@script RequireComponent(AudioSource) @script RequireComponent(AudioChorusFilter)

function Start() { GetComponent(AudioChorusFilter).delay = 0.1; }

using UnityEngine;
using System.Collections;

[RequireComponent(typeof(AudioSource))]
[RequireComponent(typeof(AudioChorusFilter))]
public class ExampleClass : MonoBehaviour {
    void Start() {
        GetComponent<AudioChorusFilter>().delay = 0.1F;
    }
}
import UnityEngine
import System.Collections

[RequireComponent(typeof(AudioSource))]
[RequireComponent(typeof(AudioChorusFilter))]
public class ExampleClass(MonoBehaviour):

	def Start() as void:
		GetComponent[of AudioChorusFilter]().delay = 0.1F