assetpostprocessor.onpreprocessaudio 在导入音频之前

2015-1-1 07:56| 发布者: 杨炎| 查看: 1964| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: assetpostprocessor.onpreprocessaudio 在导入音频之前functiononpreprocessaudio() : voiddescription描述add this function in a subclass to get a notification just before an audio clip is being imported.在 ...

assetpostprocessor.onpreprocessaudio 在导入音频之前

functiononpreprocessaudio() : void

description描述

add this function in a subclass to get a notification just before an audio clip is being imported.

在子类中加入这个函数,以便在一个声音剪辑载入之前获得一个通知。

this lets you control the import settings trough code.

它让你控制导入选项

class myaudiopostprocessor extends assetpostprocessor {

function onpreprocessaudio () {

// import files containin "mono" in their name as mono.

//导入文件名包含mono的文件

if (assetpath.contains("mono")) {

var audioimporter : audioimporter = assetimporter;

audioimporter.forcetomono = true;

}

}

}

相关阅读

文章点评
相关文章