AudioImporter
.format
Manual
Reference
Scripting
Scripting
>
Editor Classes
>
AudioImporter
AudioImporter
.format
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Enumerations
History
Index
AudioImporter
All Members
Variables
compressionBitrate
forceToMono
format
hardware
loopable
threeD
Inherited Variables
assetPath
hideFlags
name
Inherited Functions
GetInstanceID
ToString
Inherited Class Functions
Destroy
DestroyImmediate
DontDestroyOnLoad
FindObjectOfType
FindObjectsOfType
GetAtPath
Instantiate
Instantiate.<T>
operator !=
operator ==
operator bool
var
format :
AudioImporterFormat
Description
Format of imported audio.
See Also:
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"
);
}
}
}