Version: 2017.1
public bool forceToMono ;

描述

将此音频强制设置为单声道?

    // Import files containing "mono" in their name as mono.
    class DetectMono extends AssetPostprocessor {
        function OnPreprocessAudio () {
            if (assetPath.Contains("mono")) {
                var audioImporter : AudioImporter = assetImporter;
                audioImporter.forceToMono = true;
            }
        }
    }