AudioImporter.threeD Manual     Reference     Scripting  
Scripting > Editor Classes > AudioImporter
AudioImporter.threeD

var threeD : boolean

Description

Is this clip a 2D or 3D sound?

// C#: Prints a warning if the imported audio is a 2D sound.
class Warning2D extends AssetPostprocessor {
function OnPreprocessAudio () {
var audioImporter : AudioImporter = assetImporter;
if(!audioImporter.threeD)
Debug.LogWarning(assetPath + " is not a 3D audio.");
}
}