Audiokinetic's Community Q&A is the forum where users can ask and answer questions within the Wwise and Strata communities. If you would like to get an answer from Audiokinetic's Technical support team, make sure you use the Support Tickets page.

+2 votes

希望能够在Unity中直接获取到类似Wwise编辑器中Profiler页面中的各个模块的内存占用。我看到文档中有相关的说明,但是在Unity的相关集成中如何实现呢?以及能否通过AkMemoryMgr获取到AkMemID中定义的各个模块的内存信息呢?

SDK 以 静态库 (AkMemoryMgr.lib)的方式提供了一个默认实现。为了使用此库,客户端需要包含 AkModule.h 头文件并调用 AK::MemoryMgr::Init 初始化函数

 

in General Discussion by huixuan z. (120 points)

1 Answer

0 votes
可以参考下面文档,因为获取内存的方法在头文件<AK.MemroyMgr>中是有定义的,所以在cpp中添加调用头文件方法的代码,然后重编dll, 给unity c#层调用即可。

https://www.audiokinetic.com/zh/public-library/2024.1.5_8803/?source=Unity&id=pg_building.html。
ago by sixsixla s. (140 points)
...