AudioImporter.forceToMono 强制到单声道

var forceToMono : bool

Description描述

Force this clip to mono?

强制这个剪辑到单声道?

// Import files containin "mono" in their name as mono.
//导入文件名称中包含mono,将作为单声道

class DetectMono extends AssetPostprocessor {
	function OnPreprocessAudio () {
		if (assetPath.Contains("mono")) {
			var audioImporter : AudioImporter = assetImporter;
			audioImporter.forceToMono = true;
		}
	}
}
Page last updated: 2011-5-26