AudioSource.panLevel 平衡调整级别

var panLevel : float

Description描述

Sets how much the 3d engine has an effect on the channel.

设置多少,3D引擎在通道上有效果。

Useful for morphing an AudioSource from 3D(1.0f) to 2D(0.0f)

用于渐变一个AudioSource从 3D(1.0f) 到 2D(0.0f)

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	void Awake() {

		audio.panLevel = 0;

	}

}
// Hear the audio clip in both channels (2D)

//在两个通道 (2D)听到音频剪辑



audio.panLevel = 0;
Page last updated: 2011-4-5