inherits fromassetimporter audio importer lets you modifyaudioclipimport 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变量 format format of imported audio. 导入的音频格式。 compressionbitrate compression bitrate. 压缩的比特率。 threed set/get the way unity is loading the audio data. 设置/获取unity加载音频数据的方法。 forcetomono force this clip to mono? 强制这个剪辑到单声道? hardware use hardware voice/decoder if available 如果可用使用硬件voice/decoder。 loopable 循环 inherited members继承成员 inherited variables继承变量 assetpath the path name of the asset for this importer (read only) 用于这个导入器,资源的路径名(只读)。 name the name of the object. //物体的名字 hideflags should the object be hidden, saved with the scene or modifiable by the user? 物体是否被隐藏、保存在场景中或被用户修改? inherited functions继承函数 getinstanceid returns the instance id of the object. 返回物体的实例id tostring returns the name of the game object. 返回游戏物体的名称。 inherited class functions继承类函数 getatpath retrieves the asset importer for the asset at path. 为所在路径的资源,导入器重新获取资源。 destroy removes a gameobject, component or asset. 删除一个游戏物体、组件或资源 destroyimmediate destroys the object obj immediately. it is strongly recommended to use destroy instead. 立即销毁物体obj,强烈建议使用destroy代替。 dontdestroyonload makes the object target not be destroyed automatically when loading a new scene. 加载新场景的时候使目标物体不被自动销毁。 findobjectoftype returns the first active loaded object of type type. 返回type类型第一个激活的加载的物体。 findobjectsoftype returns a list of all active loaded objects of type type. 返回type类型的所有激活的加载的物体列表 instantiate clones the object original and returns the clone. 克隆原始物体,并返回克隆的物体 |