AudioImporter.format 格式

var format : AudioImporterFormat

Description描述

Format of imported audio.

导入的音频格式。

参见:AudioImporterFormat.

// Prints when an imported audio is compressed

//当一个导入的音频是压缩的,打印



class CompressionLogger extends AssetPostprocessor {

	function OnPreprocessAudio () {

		var audioImporter : AudioImporter = assetImporter;



		if (audioImporter.format == AudioImporterFormat.Compressed) {

			Debug.Log(assetPath + " Is compressed");

		}

	}

}
Page last updated: 2011-5-26