AudioImporter 音频导入器
Inherits from AssetImporter
Audio importer lets you modify AudioClip import settings from editor scripts.
AudioImporter让你从编辑器脚本修改AudioClip导入设置。
Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.
注意:这是一个编辑器类,如果想使用它你需要把它放到工程目录下的Assets/Editor文件夹下。编辑器类在UnityEditor命名空间下。所以当使用C#脚本时,你需要在脚本前面加上 "using UnityEditor"引用。
Settings of this class match the ones exposed in Audio Import Settings.
这个类的设置匹配暴露在Audio Import检视面板中的设置。
Variables变量
- formatFormat of imported audio.
导入的音频格式。 - compressionBitrateCompression bitrate.
压缩的比特率。 - threeDSet/get the way Unity is loading the Audio data.
设置/获取Unity加载音频数据的方法。 - forceToMonoForce this clip to mono?
强制这个剪辑到单声道? - hardwareUse hardware voice/decoder if available
如果可用使用硬件voice/decoder。 - loopable循环
Inherited members继承成员Inherited Variables继承变量
- assetPathThe path name of the asset for this importer (Read Only)
用于这个导入器,资源的路径名(只读)。
- nameThe name of the object. //物体的名字
- hideFlagsShould the object be hidden, saved with the scene or modifiable by the user?
物体是否被隐藏、保存在场景中或被用户修改?
Inherited Functions继承函数
- GetInstanceIDReturns the instance id of the object.
返回物体的实例ID - ToStringReturns the name of the game object.
返回游戏物体的名称。
Inherited Class Functions继承类函数
- GetAtPathRetrieves the asset importer for the asset at path.
为所在路径的资源,导入器重新获取资源。
- DestroyRemoves a gameobject, component or asset.
删除一个游戏物体、组件或资源 - DestroyImmediateDestroys the object obj immediately. It is strongly recommended to use Destroy instead.
立即销毁物体obj,强烈建议使用Destroy代替。 - DontDestroyOnLoadMakes the object target not be destroyed automatically when loading a new scene.
加载新场景的时候使目标物体不被自动销毁。 - FindObjectOfTypeReturns the first active loaded object of Type type.
返回Type类型第一个激活的加载的物体。 - FindObjectsOfTypeReturns a list of all active loaded objects of Type type.
返回Type类型的所有激活的加载的物体列表 - InstantiateClones the object original and returns the clone.
克隆原始物体,并返回克隆的物体