AudioSource.rolloffMode 衰减模式

var rolloffMode : AudioRolloffMode

Description描述

Sets/Gets how the AudioSource attenuates over distance

设置/获取AudioSource随着距离衰减。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	void Awake() {

		audio.rolloffMode = AudioRolloffMode.Linear;

	}

}
audio.rolloffMode = AudioRolloffMode.Linear;
Page last updated: 2011-4-5