Unity3D圣典3.3版本-中文版
文集大纲加载中……
本文档使用 MrDoc 发布
-
+
首页
AudioImporter 音频导入器
# AudioImporter 音频导入器 Inherits from [AssetImporter](../AssetImporter/AssetImporter.html) Audio importer lets you modify [AudioClip](../AudioClip/AudioClip.html) import settings from editor scripts. AudioImporter 让你从编辑器脚本修改 [AudioClip](../AudioClip/AudioClip.html) 导入设置。 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**变量** * [format](AudioImporter.format.html) Format of imported audio. 导入的音频格式。 * [compressionBitrate](AudioImporter.compressionBitrate.html) Compression bitrate. 压缩的比特率。 * [threeD](AudioImporter.threeD.html) Set/get the way Unity is loading the Audio data. 设置/获取 Unity 加载音频数据的方法。 * [forceToMono](AudioImporter.forceToMono.html) Force this clip to mono? 强制这个剪辑到单声道? * [hardware](AudioImporter.hardware.html) Use hardware voice/decoder if available 如果可用使用硬件 voice/decoder。 * [loopable](AudioImporter.loopable.html) 循环 ## Inherited members**继承成员** ### Inherited Variables**继承变量** * [assetPath](../AssetImporter/AssetImporter.assetPath.html) The path name of the asset for this importer (Read Only) 用于这个导入器,资源的路径名(只读)。 * [name](../Object/Object.name.html) The name of the object. //物体的名字 * [hideFlags](../Object/Object.hideFlags.html) Should the object be hidden, saved with the scene or modifiable by the user? 物体是否被隐藏、保存在场景中或被用户修改? ### Inherited Functions**继承函数** * [GetInstanceID](../Object/Object.GetInstanceID.html) Returns the instance id of the object. 返回物体的实例 ID * [ToString](../Object/Object.ToString.html) Returns the name of the game object. 返回游戏物体的名称。 ### Inherited Class Functions**继承类函数** * [GetAtPath](../AssetImporter/AssetImporter.GetAtPath.html) Retrieves the asset importer for the asset at path. 为所在路径的资源,导入器重新获取资源。 * [operator bool](../Object/Object.operator_bool.html) Does the object exist? 物体是否存在? * [Instantiate](../Object/Object.Instantiate.html) Clones the object original and returns the clone. 克隆原始物体,并返回克隆的物体 * [Instantiate.<T>](../Object/Object.Instantiate.ltTgt.html) * [Destroy](../Object/Object.Destroy.html) Removes a gameobject, component or asset. 删除一个游戏物体、组件或资源 * [DestroyImmediate](../Object/Object.DestroyImmediate.html) Destroys the object obj immediately. It is strongly recommended to use Destroy instead. 立即销毁物体 obj,强烈建议使用 Destroy 代替。 * [FindObjectsOfType](../Object/Object.FindObjectsOfType.html) Returns a list of all active loaded objects of Type type. 返回 Type 类型的所有激活的加载的物体列表 * [FindObjectOfType](../Object/Object.FindObjectOfType.html) Returns the first active loaded object of Type type. 返回 Type 类型第一个激活的加载的物体。 * [operator ==](../Object/Object.operator_eq.html) Compares if two objects refer to the same 比较如果两个物体相同 * [operator !=](../Object/Object.operator_ne.html) Compares if two objects refer to a different object 比较如果两个物体不同 * [DontDestroyOnLoad](../Object/Object.DontDestroyOnLoad.html) Makes the object target not be destroyed automatically when loading a new scene. 加载新场景的时候使目标物体不被自动销毁。
da
2022年5月14日 15:14
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
关于 MrDoc
觅思文档MrDoc
是
州的先生
开发并开源的在线文档系统,其适合作为个人和小型团队的云笔记、文档和知识库管理工具。
如果觅思文档给你或你的团队带来了帮助,欢迎对作者进行一些打赏捐助,这将有力支持作者持续投入精力更新和维护觅思文档,感谢你的捐助!
>>>捐助鸣谢列表
微信
支付宝
QQ
PayPal
Markdown文件
分享
链接
类型
密码
更新密码