版本

menu_open
警告:系统已根据您所用大版本 (2023.1.4.8496) 自动跳转至最新文档。若想访问特定版本的文档,请从 Audiokinetic Launcher 下载离线文档,并在 Wwise 设计程序中勾选 Offline Documentation 选项。
Wwise SDK 2023.1.4
ak.wwise.core.executeLuaScript

Execute a Lua script. Optionally, specify additional Lua search paths, additional modules, and additional Lua scripts to load prior to the main script. The script can return a value. All arguments will be passed to the Lua script in the "wa_args" global variable.

Arguments

名称 类型 说明
luaScript * string Defines the main Lua file to load and execute.
luaPaths array Defines an array of paths to be used to search additional Lua modules. Here is an example of a Lua path 'C:/path_to_folder/?.lua'.
Several values provided for the option.
luaPaths [...] string A value for the option.
requires array Defines additional modules to be loaded at runtime using the require system. Note that the following folders are automatically added in the Lua path: PROJECT/Add-ons/Lua, APPDATA/Audiokinetic/Wwise/Add-ons/Lua, INSTALLDIR/Authoring/Data/Add-ons/Lua.
Several values provided for the option.
requires [...] string A value for the option.
doFiles array Defines additional Lua files to load before the main Lua script is loaded and executed. It is also possible to specify a directory in which all Lua files will be loaded.
Several values provided for the option.
doFiles [...] string A value for the option.

(必填 *)

参数架构

Result

名称 类型 说明
return * boolean, object, array, number, string Result returned by the Lua script. Use a return statement at the end of the script.

(必填 *)

结果架构

有关 Wwise Authoring API 的详细信息,请参阅 使用 Wwise Authoring API(WAAPI) 章节。


此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅